purecloud 0.37.1 → 0.38.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/AuthorizationApi.html.md +57 -0
  5. data/doc_out/AuthzGrant.html.md +15 -0
  6. data/doc_out/AuthzGrantPolicy.html.md +16 -0
  7. data/doc_out/AuthzGrantRole.html.md +17 -0
  8. data/doc_out/AuthzObject.html.md +17 -0
  9. data/doc_out/AuthzPermissionContext.html.md +14 -0
  10. data/doc_out/AuthzSubject.html.md +16 -0
  11. data/doc_out/CreateUser.html.md +0 -1
  12. data/doc_out/ExportUri.html.md +14 -0
  13. data/doc_out/FaxSendRequest.html.md +5 -5
  14. data/doc_out/GroupsApi.html.md +119 -0
  15. data/doc_out/JsonNode.html.md +2 -2
  16. data/doc_out/Location.html.md +20 -0
  17. data/doc_out/LocationAddress.html.md +19 -0
  18. data/doc_out/LocationEmergencyNumber.html.md +15 -0
  19. data/doc_out/LocationsApi.html.md +249 -0
  20. data/doc_out/ObjectsApi.html.md +69 -0
  21. data/doc_out/OrganizationCreate.html.md +5 -5
  22. data/doc_out/OutboundApi.html.md +122 -0
  23. data/doc_out/SearchApi.html.md +254 -12
  24. data/doc_out/SuggestApi.html.md +254 -0
  25. data/doc_out/User.html.md +1 -1
  26. data/doc_out/UserMe.html.md +1 -1
  27. data/doc_out/UserPresence.html.md +1 -0
  28. data/doc_out/index.html.md +3 -3
  29. data/lib/purecloud.rb +13 -1
  30. data/lib/purecloud/api/authorization_api.rb +60 -0
  31. data/lib/purecloud/api/groups_api.rb +126 -0
  32. data/lib/purecloud/api/locations_api.rb +273 -0
  33. data/lib/purecloud/api/objects_api.rb +87 -0
  34. data/lib/purecloud/api/outbound_api.rb +126 -0
  35. data/lib/purecloud/api/search_api.rb +259 -14
  36. data/lib/purecloud/api/suggest_api.rb +272 -0
  37. data/lib/purecloud/api_client.rb +1 -1
  38. data/lib/purecloud/models/authz_grant.rb +186 -0
  39. data/lib/purecloud/models/authz_grant_policy.rb +197 -0
  40. data/lib/purecloud/models/authz_grant_role.rb +209 -0
  41. data/lib/purecloud/models/authz_object.rb +210 -0
  42. data/lib/purecloud/models/authz_permission_context.rb +175 -0
  43. data/lib/purecloud/models/authz_subject.rb +199 -0
  44. data/lib/purecloud/models/callback.rb +1 -1
  45. data/lib/purecloud/models/create_user.rb +4 -15
  46. data/lib/purecloud/models/export_uri.rb +176 -0
  47. data/lib/purecloud/models/fax_send_request.rb +21 -7
  48. data/lib/purecloud/models/group.rb +1 -1
  49. data/lib/purecloud/models/json_node.rb +25 -25
  50. data/lib/purecloud/models/location.rb +249 -0
  51. data/lib/purecloud/models/location_address.rb +225 -0
  52. data/lib/purecloud/models/location_emergency_number.rb +195 -0
  53. data/lib/purecloud/models/organization_create.rb +5 -5
  54. data/lib/purecloud/models/search_criteria.rb +1 -1
  55. data/lib/purecloud/models/user.rb +1 -1
  56. data/lib/purecloud/models/user_me.rb +1 -1
  57. data/lib/purecloud/models/user_presence.rb +12 -1
  58. data/lib/purecloud/version.rb +1 -1
  59. data/newVersion.md +1 -1
  60. data/swagger.json +1 -1
  61. data/version.json +1 -1
  62. metadata +28 -4
  63. data/doc_out/ExternalContactsApi.html.md +0 -1594
  64. data/lib/purecloud/api/external_contacts_api.rb +0 -1679
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: LocationEmergencyNumber
3
+ ---
4
+ ## PureCloud::LocationEmergencyNumber
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **e164** | **String** | | [optional] |
11
+ | **number** | **String** | | [optional] |
12
+ | **type** | **String** | The type of emergency number. | [optional] |
13
+ {: class="table table-striped"}
14
+
15
+
@@ -0,0 +1,249 @@
1
+ ---
2
+ title: LocationsApi
3
+ ---
4
+
5
+ ## PureCloud::LocationsApi
6
+
7
+ All URIs are relative to *https://api.mypurecloud.com*
8
+
9
+ Method | HTTP request | Description
10
+ ------------- | ------------- | -------------
11
+ |[**get_location_id**](LocationsApi.html#get_location_id) | **GET** /api/v2/locations/{locationId} | Get Location by ID.|
12
+ |[**get_locations**](LocationsApi.html#get_locations) | **GET** /api/v2/locations | Get a list of all locations.|
13
+ |[**get_search**](LocationsApi.html#get_search) | **GET** /api/v2/locations/search | Search using q64|
14
+ |[**post_search**](LocationsApi.html#post_search) | **POST** /api/v2/locations/search | Search|
15
+ {: class="table table-striped"}
16
+
17
+ <a name="get_location_id"></a>
18
+
19
+ ## -[**Location**](Location.html) get_location_id(location_id)
20
+
21
+ Get Location by ID.
22
+
23
+
24
+
25
+ ### Example
26
+ ~~~ruby
27
+ # load the gem
28
+ require 'purecloud'
29
+ # setup authorization
30
+ @secret = ENV['PURECLOUD_SECRET']
31
+ @id = ENV['PURECLOUD_CLIENT_ID']
32
+ environment = "mypurecloud.com"
33
+
34
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
35
+
36
+ PureCloud.configure do |config|
37
+ config.access_token = @authToken
38
+ end
39
+
40
+ api_instance = PureCloud::LocationsApi.new
41
+
42
+ location_id = "location_id_example" # String | Location ID
43
+
44
+
45
+ begin
46
+ #Get Location by ID.
47
+ result = api_instance.get_location_id(location_id)
48
+ p result
49
+ rescue PureCloud::ApiError => e
50
+ puts "Exception when calling LocationsApi->get_location_id: #{e}"
51
+ end
52
+ ~~~
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **location_id** | **String**| Location ID |
59
+ {: class="table table-striped"}
60
+
61
+
62
+ ### Return type
63
+
64
+ [**Location**](Location.html)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+
73
+ <a name="get_locations"></a>
74
+
75
+ ## -[**Array&lt;Location&gt;**](Location.html) get_locations(opts)
76
+
77
+ Get a list of all locations.
78
+
79
+
80
+
81
+ ### Example
82
+ ~~~ruby
83
+ # load the gem
84
+ require 'purecloud'
85
+ # setup authorization
86
+ @secret = ENV['PURECLOUD_SECRET']
87
+ @id = ENV['PURECLOUD_CLIENT_ID']
88
+ environment = "mypurecloud.com"
89
+
90
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
91
+
92
+ PureCloud.configure do |config|
93
+ config.access_token = @authToken
94
+ end
95
+
96
+ api_instance = PureCloud::LocationsApi.new
97
+
98
+ opts = {
99
+ page_size: 25, # Integer | Page size
100
+ page_number: 1, # Integer | Page number
101
+ sort_order: "sort_order_example" # String | Sort order
102
+ }
103
+
104
+ begin
105
+ #Get a list of all locations.
106
+ result = api_instance.get_locations(opts)
107
+ p result
108
+ rescue PureCloud::ApiError => e
109
+ puts "Exception when calling LocationsApi->get_locations: #{e}"
110
+ end
111
+ ~~~
112
+
113
+ ### Parameters
114
+
115
+ Name | Type | Description | Notes
116
+ ------------- | ------------- | ------------- | -------------
117
+ **page_size** | **Integer**| Page size | [optional] [default to 25]
118
+ **page_number** | **Integer**| Page number | [optional] [default to 1]
119
+ **sort_order** | **String**| Sort order | [optional]
120
+ {: class="table table-striped"}
121
+
122
+
123
+ ### Return type
124
+
125
+ [**Array&lt;Location&gt;**](Location.html)
126
+
127
+ ### HTTP request headers
128
+
129
+ - **Content-Type**: application/json
130
+ - **Accept**: application/json
131
+
132
+
133
+
134
+ <a name="get_search"></a>
135
+
136
+ ## -[**GroupsSearchResponse**](GroupsSearchResponse.html) get_search(opts)
137
+
138
+ Search using q64
139
+
140
+
141
+
142
+ ### Example
143
+ ~~~ruby
144
+ # load the gem
145
+ require 'purecloud'
146
+ # setup authorization
147
+ @secret = ENV['PURECLOUD_SECRET']
148
+ @id = ENV['PURECLOUD_CLIENT_ID']
149
+ environment = "mypurecloud.com"
150
+
151
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
152
+
153
+ PureCloud.configure do |config|
154
+ config.access_token = @authToken
155
+ end
156
+
157
+ api_instance = PureCloud::LocationsApi.new
158
+
159
+ opts = {
160
+ q64: "q64_example", # String |
161
+ expand: ["expand_example"] # Array<String> |
162
+ }
163
+
164
+ begin
165
+ #Search using q64
166
+ result = api_instance.get_search(opts)
167
+ p result
168
+ rescue PureCloud::ApiError => e
169
+ puts "Exception when calling LocationsApi->get_search: #{e}"
170
+ end
171
+ ~~~
172
+
173
+ ### Parameters
174
+
175
+ Name | Type | Description | Notes
176
+ ------------- | ------------- | ------------- | -------------
177
+ **q64** | **String**| | [optional]
178
+ **expand** | [**Array&lt;String&gt;**](String.html)| | [optional]
179
+ {: class="table table-striped"}
180
+
181
+
182
+ ### Return type
183
+
184
+ [**GroupsSearchResponse**](GroupsSearchResponse.html)
185
+
186
+ ### HTTP request headers
187
+
188
+ - **Content-Type**: application/json
189
+ - **Accept**: application/json
190
+
191
+
192
+
193
+ <a name="post_search"></a>
194
+
195
+ ## -[**GroupsSearchResponse**](GroupsSearchResponse.html) post_search(opts)
196
+
197
+ Search
198
+
199
+
200
+
201
+ ### Example
202
+ ~~~ruby
203
+ # load the gem
204
+ require 'purecloud'
205
+ # setup authorization
206
+ @secret = ENV['PURECLOUD_SECRET']
207
+ @id = ENV['PURECLOUD_CLIENT_ID']
208
+ environment = "mypurecloud.com"
209
+
210
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
211
+
212
+ PureCloud.configure do |config|
213
+ config.access_token = @authToken
214
+ end
215
+
216
+ api_instance = PureCloud::LocationsApi.new
217
+
218
+ opts = {
219
+ body: PureCloud::SearchRequest.new # SearchRequest | Search request options
220
+ }
221
+
222
+ begin
223
+ #Search
224
+ result = api_instance.post_search(opts)
225
+ p result
226
+ rescue PureCloud::ApiError => e
227
+ puts "Exception when calling LocationsApi->post_search: #{e}"
228
+ end
229
+ ~~~
230
+
231
+ ### Parameters
232
+
233
+ Name | Type | Description | Notes
234
+ ------------- | ------------- | ------------- | -------------
235
+ **body** | [**SearchRequest**](SearchRequest.html)| Search request options | [optional]
236
+ {: class="table table-striped"}
237
+
238
+
239
+ ### Return type
240
+
241
+ [**GroupsSearchResponse**](GroupsSearchResponse.html)
242
+
243
+ ### HTTP request headers
244
+
245
+ - **Content-Type**: application/json
246
+ - **Accept**: application/json
247
+
248
+
249
+
@@ -0,0 +1,69 @@
1
+ ---
2
+ title: ObjectsApi
3
+ ---
4
+
5
+ ## PureCloud::ObjectsApi
6
+
7
+ All URIs are relative to *https://api.mypurecloud.com*
8
+
9
+ Method | HTTP request | Description
10
+ ------------- | ------------- | -------------
11
+ |[**get_objects_object_id**](ObjectsApi.html#get_objects_object_id) | **GET** /api/v2/authorization/objects/{objectId} | Returns a permission-protected object, showing the permission contexts it belongs to.|
12
+ {: class="table table-striped"}
13
+
14
+ <a name="get_objects_object_id"></a>
15
+
16
+ ## -[**AuthzObject**](AuthzObject.html) get_objects_object_id(object_id)
17
+
18
+ Returns a permission-protected object, showing the permission contexts it belongs to.
19
+
20
+
21
+
22
+ ### Example
23
+ ~~~ruby
24
+ # load the gem
25
+ require 'purecloud'
26
+ # setup authorization
27
+ @secret = ENV['PURECLOUD_SECRET']
28
+ @id = ENV['PURECLOUD_CLIENT_ID']
29
+ environment = "mypurecloud.com"
30
+
31
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
32
+
33
+ PureCloud.configure do |config|
34
+ config.access_token = @authToken
35
+ end
36
+
37
+ api_instance = PureCloud::ObjectsApi.new
38
+
39
+ object_id = "object_id_example" # String | Object ID
40
+
41
+
42
+ begin
43
+ #Returns a permission-protected object, showing the permission contexts it belongs to.
44
+ result = api_instance.get_objects_object_id(object_id)
45
+ p result
46
+ rescue PureCloud::ApiError => e
47
+ puts "Exception when calling ObjectsApi->get_objects_object_id: #{e}"
48
+ end
49
+ ~~~
50
+
51
+ ### Parameters
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **object_id** | **String**| Object ID |
56
+ {: class="table table-striped"}
57
+
58
+
59
+ ### Return type
60
+
61
+ [**AuthzObject**](AuthzObject.html)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+
@@ -7,12 +7,12 @@ title: OrganizationCreate
7
7
 
8
8
  |Name | Type | Description | Notes|
9
9
  |------------ | ------------- | ------------- | -------------|
10
- | **name** | **String** | Display Name for Organization | |
11
- | **admin_username** | **String** | Administrator username for this organization | |
12
- | **admin_password** | **String** | Administrator password for this organization | |
10
+ | **name** | **String** | Display name for this organization. | |
11
+ | **admin_username** | **String** | Administrator username for this organization in the form of an email address. | |
12
+ | **admin_password** | **String** | Administrator password for this organization. | |
13
13
  | **domain** | **String** | Fully qualified domain name for this organization (Ex. example.com). | |
14
- | **third_party_org_name** | **String** | Organization Name which does not contain special characters like spaces. | |
15
- | **deletable** | **BOOLEAN** | Deletable Property for Organization. | [optional] [default to false]|
14
+ | **third_party_org_name** | **String** | Organization name which does not contain special characters like spaces. | |
15
+ | **deletable** | **BOOLEAN** | Deletable property for this organization. | [optional] [default to false]|
16
16
  {: class="table table-striped"}
17
17
 
18
18
 
@@ -31,9 +31,11 @@ Method | HTTP request | Description
31
31
  |[**get_contactlists**](OutboundApi.html#get_contactlists) | **GET** /api/v2/outbound/contactlists | Query a list of contact lists.|
32
32
  |[**get_contactlists_contactlist_id**](OutboundApi.html#get_contactlists_contactlist_id) | **GET** /api/v2/outbound/contactlists/{contactListId} | Get dialer contactList.|
33
33
  |[**get_contactlists_contactlist_id_contacts_contact_id**](OutboundApi.html#get_contactlists_contactlist_id_contacts_contact_id) | **GET** /api/v2/outbound/contactlists/{contactListId}/contacts/{contactId} | Get dialer contactList.|
34
+ |[**get_contactlists_contactlist_id_export**](OutboundApi.html#get_contactlists_contactlist_id_export) | **GET** /api/v2/outbound/contactlists/{contactListId}/export | Get the URI of a contact list export.|
34
35
  |[**get_contactlists_contactlist_id_importstatus**](OutboundApi.html#get_contactlists_contactlist_id_importstatus) | **GET** /api/v2/outbound/contactlists/{contactListId}/importstatus | Get dialer contactList import status.|
35
36
  |[**get_dnclists**](OutboundApi.html#get_dnclists) | **GET** /api/v2/outbound/dnclists | Query dialer DNC lists|
36
37
  |[**get_dnclists_dnclist_id**](OutboundApi.html#get_dnclists_dnclist_id) | **GET** /api/v2/outbound/dnclists/{dncListId} | Get dialer DNC list|
38
+ |[**get_dnclists_dnclist_id_export**](OutboundApi.html#get_dnclists_dnclist_id_export) | **GET** /api/v2/outbound/dnclists/{dncListId}/export | Get the URI of a DNC list export.|
37
39
  |[**get_dnclists_dnclist_id_importstatus**](OutboundApi.html#get_dnclists_dnclist_id_importstatus) | **GET** /api/v2/outbound/dnclists/{dncListId}/importstatus | Get dialer dncList import status.|
38
40
  |[**get_rulesets**](OutboundApi.html#get_rulesets) | **GET** /api/v2/outbound/rulesets | Query a list of Rule Sets.|
39
41
  |[**get_rulesets_ruleset_id**](OutboundApi.html#get_rulesets_ruleset_id) | **GET** /api/v2/outbound/rulesets/{ruleSetId} | Get a Rule Set by ID.|
@@ -1431,6 +1433,66 @@ Name | Type | Description | Notes
1431
1433
 
1432
1434
 
1433
1435
 
1436
+ <a name="get_contactlists_contactlist_id_export"></a>
1437
+
1438
+ ## -[**ExportUri**](ExportUri.html) get_contactlists_contactlist_id_export(contact_list_id, opts)
1439
+
1440
+ Get the URI of a contact list export.
1441
+
1442
+
1443
+
1444
+ ### Example
1445
+ ~~~ruby
1446
+ # load the gem
1447
+ require 'purecloud'
1448
+ # setup authorization
1449
+ @secret = ENV['PURECLOUD_SECRET']
1450
+ @id = ENV['PURECLOUD_CLIENT_ID']
1451
+ environment = "mypurecloud.com"
1452
+
1453
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
1454
+
1455
+ PureCloud.configure do |config|
1456
+ config.access_token = @authToken
1457
+ end
1458
+
1459
+ api_instance = PureCloud::OutboundApi.new
1460
+
1461
+ contact_list_id = "contact_list_id_example" # String | ContactList ID
1462
+
1463
+ opts = {
1464
+ download: "false" # String | Redirect to download uri
1465
+ }
1466
+
1467
+ begin
1468
+ #Get the URI of a contact list export.
1469
+ result = api_instance.get_contactlists_contactlist_id_export(contact_list_id, opts)
1470
+ p result
1471
+ rescue PureCloud::ApiError => e
1472
+ puts "Exception when calling OutboundApi->get_contactlists_contactlist_id_export: #{e}"
1473
+ end
1474
+ ~~~
1475
+
1476
+ ### Parameters
1477
+
1478
+ Name | Type | Description | Notes
1479
+ ------------- | ------------- | ------------- | -------------
1480
+ **contact_list_id** | **String**| ContactList ID |
1481
+ **download** | **String**| Redirect to download uri | [optional] [default to false]
1482
+ {: class="table table-striped"}
1483
+
1484
+
1485
+ ### Return type
1486
+
1487
+ [**ExportUri**](ExportUri.html)
1488
+
1489
+ ### HTTP request headers
1490
+
1491
+ - **Content-Type**: application/json
1492
+ - **Accept**: application/json
1493
+
1494
+
1495
+
1434
1496
  <a name="get_contactlists_contactlist_id_importstatus"></a>
1435
1497
 
1436
1498
  ## -[**ImportStatus**](ImportStatus.html) get_contactlists_contactlist_id_importstatus(contact_list_id)
@@ -1620,6 +1682,66 @@ Name | Type | Description | Notes
1620
1682
 
1621
1683
 
1622
1684
 
1685
+ <a name="get_dnclists_dnclist_id_export"></a>
1686
+
1687
+ ## -[**ExportUri**](ExportUri.html) get_dnclists_dnclist_id_export(dnc_list_id, opts)
1688
+
1689
+ Get the URI of a DNC list export.
1690
+
1691
+
1692
+
1693
+ ### Example
1694
+ ~~~ruby
1695
+ # load the gem
1696
+ require 'purecloud'
1697
+ # setup authorization
1698
+ @secret = ENV['PURECLOUD_SECRET']
1699
+ @id = ENV['PURECLOUD_CLIENT_ID']
1700
+ environment = "mypurecloud.com"
1701
+
1702
+ @authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
1703
+
1704
+ PureCloud.configure do |config|
1705
+ config.access_token = @authToken
1706
+ end
1707
+
1708
+ api_instance = PureCloud::OutboundApi.new
1709
+
1710
+ dnc_list_id = "dnc_list_id_example" # String | DncList ID
1711
+
1712
+ opts = {
1713
+ download: "false" # String | Redirect to download uri
1714
+ }
1715
+
1716
+ begin
1717
+ #Get the URI of a DNC list export.
1718
+ result = api_instance.get_dnclists_dnclist_id_export(dnc_list_id, opts)
1719
+ p result
1720
+ rescue PureCloud::ApiError => e
1721
+ puts "Exception when calling OutboundApi->get_dnclists_dnclist_id_export: #{e}"
1722
+ end
1723
+ ~~~
1724
+
1725
+ ### Parameters
1726
+
1727
+ Name | Type | Description | Notes
1728
+ ------------- | ------------- | ------------- | -------------
1729
+ **dnc_list_id** | **String**| DncList ID |
1730
+ **download** | **String**| Redirect to download uri | [optional] [default to false]
1731
+ {: class="table table-striped"}
1732
+
1733
+
1734
+ ### Return type
1735
+
1736
+ [**ExportUri**](ExportUri.html)
1737
+
1738
+ ### HTTP request headers
1739
+
1740
+ - **Content-Type**: application/json
1741
+ - **Accept**: application/json
1742
+
1743
+
1744
+
1623
1745
  <a name="get_dnclists_dnclist_id_importstatus"></a>
1624
1746
 
1625
1747
  ## -[**ImportStatus**](ImportStatus.html) get_dnclists_dnclist_id_importstatus(dnc_list_id)