Skip to content

Commit 8c40960

Browse files
committed
Regenerate code according to latest swagger spec
1 parent 3ca94a6 commit 8c40960

108 files changed

Lines changed: 994 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

code-generator/definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const generateField = (m, f) => {
5252
p += `@JSONField(name="${f.name}")`
5353
pName = f.name.replace(/[:.](\w)/g, '_$1')
5454
p += `\n public ${f.type} ${pName};`
55-
} else if (f.name === 'public' || f.name === 'default') {
55+
} else if (f.name === 'public' || f.name === 'default' || f.name === 'package') {
5656
p += `@JSONField(name="${f.name}")`
5757
pName = `_${f.name}`
5858
p += `\n public ${f.type} ${pName};`

samples.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,26 @@ rc.revoke();
18431843
[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) in API Explorer.
18441844

18451845

1846+
## Update User Call Queues
1847+
1848+
HTTP PUT `/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-queues`
1849+
1850+
```cs
1851+
RestClient rc = new RestClient("clientID", "clientSecret", "serverURL");
1852+
rc.authorize("username", "extension", "password");
1853+
var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callQueues().put(userCallQueues);
1854+
rc.revoke();
1855+
```
1856+
1857+
- Parameter `userCallQueues` is of type [UserCallQueues](./src/main/java/com/ringcentral/definitions/UserCallQueues.java)
1858+
- `result` is of type [UserCallQueues](./src/main/java/com/ringcentral/definitions/UserCallQueues.java)
1859+
- Parameter `apiVersion` is optional with default value `v1.0`
1860+
- Parameter `accountId` is optional with default value `~`
1861+
- Parameter `extensionId` is optional with default value `~`
1862+
1863+
[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateUserCallQueues) in API Explorer.
1864+
1865+
18461866
## Get Caller Blocking Settings
18471867

18481868
HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking`
@@ -4563,6 +4583,24 @@ rc.revoke();
45634583
[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-createDataExportTask) in API Explorer.
45644584

45654585

4586+
## Get Data Export Task List
4587+
4588+
HTTP GET `/restapi/v1.0/glip/data-export`
4589+
4590+
```cs
4591+
RestClient rc = new RestClient("clientID", "clientSecret", "serverURL");
4592+
rc.authorize("username", "extension", "password");
4593+
var result = rc.restapi(apiVersion).glip().dataExport().list(listDataExportTasksParameters);
4594+
rc.revoke();
4595+
```
4596+
4597+
- Parameter `listDataExportTasksParameters` is of type [ListDataExportTasksParameters](./src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java)
4598+
- `result` is of type [DataExportTaskList](./src/main/java/com/ringcentral/definitions/DataExportTaskList.java)
4599+
- Parameter `apiVersion` is optional with default value `v1.0`
4600+
4601+
[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-listDataExportTasks) in API Explorer.
4602+
4603+
45664604
## Get Data Export Task
45674605

45684606
HTTP GET `/restapi/v1.0/glip/data-export/{taskId}`
@@ -4581,6 +4619,24 @@ rc.revoke();
45814619
[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTask) in API Explorer.
45824620

45834621

4622+
## Get Data Export Task Dataset
4623+
4624+
HTTP GET `/restapi/v1.0/glip/data-export/{taskId}/datasets/{datasetId}`
4625+
4626+
```cs
4627+
RestClient rc = new RestClient("clientID", "clientSecret", "serverURL");
4628+
rc.authorize("username", "extension", "password");
4629+
var result = rc.restapi(apiVersion).glip().dataExport(taskId).datasets(datasetId).get();
4630+
rc.revoke();
4631+
```
4632+
4633+
4634+
- `result` is of type `byte[]`
4635+
- Parameter `apiVersion` is optional with default value `v1.0`
4636+
4637+
[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTaskDataset) in API Explorer.
4638+
4639+
45844640
## Get User Events List
45854641

45864642
HTTP GET `/restapi/v1.0/glip/events`

src/main/java/com/ringcentral/definitions/AccountStatusInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class AccountStatusInfo {
88
public String comment;
99
/**
1010
* Type of suspension
11-
* Enum: Voluntarily, Involuntarily
11+
* Enum: SuspendedVoluntarily, SuspendedInvoluntarily, UserResumed
1212
*/
1313
public String reason;
1414
/**

src/main/java/com/ringcentral/definitions/BillingPlanInfo.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ public class BillingPlanInfo {
1818
/**
1919
* Number of duration units
2020
*/
21-
public String duration;
21+
public Long duration;
2222
/**
2323
* Billing plan type
2424
* Enum: Initial, Regular, Suspended, Trial, TrialNoCC, Free
2525
*/
2626
public String type;
27+
/**
28+
* Included digital lines count
29+
*/
30+
public Long includedPhoneLines;
2731

2832
public BillingPlanInfo id(String id) {
2933
this.id = id;
@@ -40,7 +44,7 @@ public BillingPlanInfo durationUnit(String durationUnit) {
4044
return this;
4145
}
4246

43-
public BillingPlanInfo duration(String duration) {
47+
public BillingPlanInfo duration(Long duration) {
4448
this.duration = duration;
4549
return this;
4650
}
@@ -50,4 +54,9 @@ public BillingPlanInfo type(String type) {
5054
return this;
5155
}
5256

57+
public BillingPlanInfo includedPhoneLines(Long includedPhoneLines) {
58+
this.includedPhoneLines = includedPhoneLines;
59+
return this;
60+
}
61+
5362
}

src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class CallLogRecordLegInfo {
3838
*/
3939
public String legType;
4040
/**
41-
* The call start datetime in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z
41+
* The call start datetime in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z
4242
*/
4343
public String startTime;
4444
/**

src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public class CompanyPhoneNumberInfo {
5757
* CCRN (Contact Center Routing Number) provider. If not specified then the default value 'InContact/North America' is used, its ID is '1'
5858
*/
5959
public ContactCenterProvider contactCenterProvider;
60+
/**
61+
* Vanity pattern for this number. Returned only when vanity search option is requested. Vanity pattern corresponds to request parameters nxx plus line or numberPattern
62+
*/
63+
public String vanityPattern;
6064

6165
public CompanyPhoneNumberInfo uri(String uri) {
6266
this.uri = uri;
@@ -123,4 +127,9 @@ public CompanyPhoneNumberInfo contactCenterProvider(ContactCenterProvider contac
123127
return this;
124128
}
125129

130+
public CompanyPhoneNumberInfo vanityPattern(String vanityPattern) {
131+
this.vanityPattern = vanityPattern;
132+
return this;
133+
}
134+
126135
}

src/main/java/com/ringcentral/definitions/ContactInfo.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class ContactInfo {
2121
public String jobTitle;
2222
/**
2323
* Email of extension user
24-
* Required
2524
*/
2625
public String email;
2726
/**

src/main/java/com/ringcentral/definitions/ContactList.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33

44
public class ContactList {
5+
/**
6+
* link to the list of user personal contacts
7+
*/
8+
public String uri;
59
/**
610
* List of personal contacts from the extension address book
711
*/
@@ -14,6 +18,15 @@ public class ContactList {
1418
* Information on paging
1519
*/
1620
public UserContactsPagingInfo paging;
21+
/**
22+
* Information on address book groups
23+
*/
24+
public UserContactsGroupsInfo groups;
25+
26+
public ContactList uri(String uri) {
27+
this.uri = uri;
28+
return this;
29+
}
1730

1831
public ContactList records(PersonalContactResource[] records) {
1932
this.records = records;
@@ -30,4 +43,9 @@ public ContactList paging(UserContactsPagingInfo paging) {
3043
return this;
3144
}
3245

46+
public ContactList groups(UserContactsGroupsInfo groups) {
47+
this.groups = groups;
48+
return this;
49+
}
50+
3351
}

src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33

44
public class CreateDataExportTaskRequest {
55
/**
6-
* Starting time for data collection. The default value is current time minus 24 hours. If `dateTo` is not specified then its value is set to `dateFrom` plus 24 hours. The specified time range should not be greater than 7 days
6+
* Starting time for data collection. The default value is `timeTo` minus 24 hours. Max allowed time frame between `timeFrom` and `timeTo` is 6 months
77
*/
8-
public String dateFrom;
8+
public String timeFrom;
99
/**
10-
* Ending time for data collection. The default value is current time. If `dateFrom` is not specified then its value is set to `dateTo` minus 24 hours. The specified time range should not be greater than 7 days
10+
* Ending time for data collection. The default value is current time. Max allowed time frame between `timeFrom` and `timeTo` is 6 months
1111
*/
12-
public String dateTo;
12+
public String timeTo;
1313
/**
14-
* List of users which data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 30 users per request is supported.
14+
*
1515
*/
16-
public String[] userIds;
16+
public DataExportTaskContactInfo[] contacts;
1717
/**
18-
* List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected
18+
* List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected. Maximum number of chats supported is 10
1919
*/
2020
public String[] chatIds;
2121

22-
public CreateDataExportTaskRequest dateFrom(String dateFrom) {
23-
this.dateFrom = dateFrom;
22+
public CreateDataExportTaskRequest timeFrom(String timeFrom) {
23+
this.timeFrom = timeFrom;
2424
return this;
2525
}
2626

27-
public CreateDataExportTaskRequest dateTo(String dateTo) {
28-
this.dateTo = dateTo;
27+
public CreateDataExportTaskRequest timeTo(String timeTo) {
28+
this.timeTo = timeTo;
2929
return this;
3030
}
3131

32-
public CreateDataExportTaskRequest userIds(String[] userIds) {
33-
this.userIds = userIds;
32+
public CreateDataExportTaskRequest contacts(DataExportTaskContactInfo[] contacts) {
33+
this.contacts = contacts;
3434
return this;
3535
}
3636

src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class CreateFaxMessageRequest {
1414
/**
1515
* To Phone Number
1616
*/
17-
public MessageStoreCallerInfoRequest[] to;
17+
public MessageStoreCalleeInfoRequest[] to;
1818
/**
1919
* Timestamp to send fax at. If not specified (current or the past), the fax is sent immediately
2020
*/
@@ -42,7 +42,7 @@ public CreateFaxMessageRequest faxResolution(String faxResolution) {
4242
return this;
4343
}
4444

45-
public CreateFaxMessageRequest to(MessageStoreCallerInfoRequest[] to) {
45+
public CreateFaxMessageRequest to(MessageStoreCalleeInfoRequest[] to) {
4646
this.to = to;
4747
return this;
4848
}

0 commit comments

Comments
 (0)