purecloud 0.37.1 → 0.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/config-ruby.json +1 -1
- data/doc_out/AuthorizationApi.html.md +57 -0
- data/doc_out/AuthzGrant.html.md +15 -0
- data/doc_out/AuthzGrantPolicy.html.md +16 -0
- data/doc_out/AuthzGrantRole.html.md +17 -0
- data/doc_out/AuthzObject.html.md +17 -0
- data/doc_out/AuthzPermissionContext.html.md +14 -0
- data/doc_out/AuthzSubject.html.md +16 -0
- data/doc_out/CreateUser.html.md +0 -1
- data/doc_out/ExportUri.html.md +14 -0
- data/doc_out/FaxSendRequest.html.md +5 -5
- data/doc_out/GroupsApi.html.md +119 -0
- data/doc_out/JsonNode.html.md +2 -2
- data/doc_out/Location.html.md +20 -0
- data/doc_out/LocationAddress.html.md +19 -0
- data/doc_out/LocationEmergencyNumber.html.md +15 -0
- data/doc_out/LocationsApi.html.md +249 -0
- data/doc_out/ObjectsApi.html.md +69 -0
- data/doc_out/OrganizationCreate.html.md +5 -5
- data/doc_out/OutboundApi.html.md +122 -0
- data/doc_out/SearchApi.html.md +254 -12
- data/doc_out/SuggestApi.html.md +254 -0
- data/doc_out/User.html.md +1 -1
- data/doc_out/UserMe.html.md +1 -1
- data/doc_out/UserPresence.html.md +1 -0
- data/doc_out/index.html.md +3 -3
- data/lib/purecloud.rb +13 -1
- data/lib/purecloud/api/authorization_api.rb +60 -0
- data/lib/purecloud/api/groups_api.rb +126 -0
- data/lib/purecloud/api/locations_api.rb +273 -0
- data/lib/purecloud/api/objects_api.rb +87 -0
- data/lib/purecloud/api/outbound_api.rb +126 -0
- data/lib/purecloud/api/search_api.rb +259 -14
- data/lib/purecloud/api/suggest_api.rb +272 -0
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/authz_grant.rb +186 -0
- data/lib/purecloud/models/authz_grant_policy.rb +197 -0
- data/lib/purecloud/models/authz_grant_role.rb +209 -0
- data/lib/purecloud/models/authz_object.rb +210 -0
- data/lib/purecloud/models/authz_permission_context.rb +175 -0
- data/lib/purecloud/models/authz_subject.rb +199 -0
- data/lib/purecloud/models/callback.rb +1 -1
- data/lib/purecloud/models/create_user.rb +4 -15
- data/lib/purecloud/models/export_uri.rb +176 -0
- data/lib/purecloud/models/fax_send_request.rb +21 -7
- data/lib/purecloud/models/group.rb +1 -1
- data/lib/purecloud/models/json_node.rb +25 -25
- data/lib/purecloud/models/location.rb +249 -0
- data/lib/purecloud/models/location_address.rb +225 -0
- data/lib/purecloud/models/location_emergency_number.rb +195 -0
- data/lib/purecloud/models/organization_create.rb +5 -5
- data/lib/purecloud/models/search_criteria.rb +1 -1
- data/lib/purecloud/models/user.rb +1 -1
- data/lib/purecloud/models/user_me.rb +1 -1
- data/lib/purecloud/models/user_presence.rb +12 -1
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +28 -4
- data/doc_out/ExternalContactsApi.html.md +0 -1594
- data/lib/purecloud/api/external_contacts_api.rb +0 -1679
@@ -0,0 +1,87 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@inin.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: ININ
|
11
|
+
http://www.inin.com
|
12
|
+
|
13
|
+
Terms of Service: https://developer.mypurecloud.com/tos
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require "uri"
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class ObjectsApi
|
21
|
+
attr_accessor :api_client
|
22
|
+
|
23
|
+
def initialize(api_client = ApiClient.default)
|
24
|
+
@api_client = api_client
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns a permission-protected object, showing the permission contexts it belongs to.
|
28
|
+
#
|
29
|
+
# @param object_id Object ID
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [AuthzObject]
|
32
|
+
def get_objects_object_id(object_id, opts = {})
|
33
|
+
data, status_code, headers = get_objects_object_id_with_http_info(object_id, opts)
|
34
|
+
return data
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns a permission-protected object, showing the permission contexts it belongs to.
|
38
|
+
#
|
39
|
+
# @param object_id Object ID
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(AuthzObject, Fixnum, Hash)>] AuthzObject data, response status code and response headers
|
42
|
+
def get_objects_object_id_with_http_info(object_id, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: ObjectsApi#get_objects_object_id ..."
|
45
|
+
end
|
46
|
+
|
47
|
+
# verify the required parameter 'object_id' is set
|
48
|
+
fail "Missing the required parameter 'object_id' when calling get_objects_object_id" if object_id.nil?
|
49
|
+
|
50
|
+
# resource path
|
51
|
+
local_var_path = "/api/v2/authorization/objects/{objectId}".sub('{format}','json').sub('{' + 'objectId' + '}', object_id.to_s)
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = {}
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = {}
|
58
|
+
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
_header_accept = ['application/json']
|
61
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
62
|
+
|
63
|
+
# HTTP header 'Content-Type'
|
64
|
+
_header_content_type = ['application/json']
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = nil
|
72
|
+
|
73
|
+
auth_names = ['PureCloud Auth']
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => 'AuthzObject')
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: ObjectsApi#get_objects_object_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -1525,6 +1525,69 @@ module PureCloud
|
|
1525
1525
|
return data, status_code, headers
|
1526
1526
|
end
|
1527
1527
|
|
1528
|
+
# Get the URI of a contact list export.
|
1529
|
+
#
|
1530
|
+
# @param contact_list_id ContactList ID
|
1531
|
+
# @param [Hash] opts the optional parameters
|
1532
|
+
# @option opts [String] :download Redirect to download uri (default to false)
|
1533
|
+
# @return [ExportUri]
|
1534
|
+
def get_contactlists_contactlist_id_export(contact_list_id, opts = {})
|
1535
|
+
data, status_code, headers = get_contactlists_contactlist_id_export_with_http_info(contact_list_id, opts)
|
1536
|
+
return data
|
1537
|
+
end
|
1538
|
+
|
1539
|
+
# Get the URI of a contact list export.
|
1540
|
+
#
|
1541
|
+
# @param contact_list_id ContactList ID
|
1542
|
+
# @param [Hash] opts the optional parameters
|
1543
|
+
# @option opts [String] :download Redirect to download uri
|
1544
|
+
# @return [Array<(ExportUri, Fixnum, Hash)>] ExportUri data, response status code and response headers
|
1545
|
+
def get_contactlists_contactlist_id_export_with_http_info(contact_list_id, opts = {})
|
1546
|
+
if @api_client.config.debugging
|
1547
|
+
@api_client.config.logger.debug "Calling API: OutboundApi#get_contactlists_contactlist_id_export ..."
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
# verify the required parameter 'contact_list_id' is set
|
1551
|
+
fail "Missing the required parameter 'contact_list_id' when calling get_contactlists_contactlist_id_export" if contact_list_id.nil?
|
1552
|
+
|
1553
|
+
# resource path
|
1554
|
+
local_var_path = "/api/v2/outbound/contactlists/{contactListId}/export".sub('{format}','json').sub('{' + 'contactListId' + '}', contact_list_id.to_s)
|
1555
|
+
|
1556
|
+
# query parameters
|
1557
|
+
query_params = {}
|
1558
|
+
query_params[:'download'] = opts[:'download'] if opts[:'download']
|
1559
|
+
|
1560
|
+
# header parameters
|
1561
|
+
header_params = {}
|
1562
|
+
|
1563
|
+
# HTTP header 'Accept' (if needed)
|
1564
|
+
_header_accept = ['application/json']
|
1565
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1566
|
+
|
1567
|
+
# HTTP header 'Content-Type'
|
1568
|
+
_header_content_type = ['application/json']
|
1569
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1570
|
+
|
1571
|
+
# form parameters
|
1572
|
+
form_params = {}
|
1573
|
+
|
1574
|
+
# http body (model)
|
1575
|
+
post_body = nil
|
1576
|
+
|
1577
|
+
auth_names = ['PureCloud Auth']
|
1578
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1579
|
+
:header_params => header_params,
|
1580
|
+
:query_params => query_params,
|
1581
|
+
:form_params => form_params,
|
1582
|
+
:body => post_body,
|
1583
|
+
:auth_names => auth_names,
|
1584
|
+
:return_type => 'ExportUri')
|
1585
|
+
if @api_client.config.debugging
|
1586
|
+
@api_client.config.logger.debug "API called: OutboundApi#get_contactlists_contactlist_id_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1587
|
+
end
|
1588
|
+
return data, status_code, headers
|
1589
|
+
end
|
1590
|
+
|
1528
1591
|
# Get dialer contactList import status.
|
1529
1592
|
#
|
1530
1593
|
# @param contact_list_id ContactList ID
|
@@ -1738,6 +1801,69 @@ module PureCloud
|
|
1738
1801
|
return data, status_code, headers
|
1739
1802
|
end
|
1740
1803
|
|
1804
|
+
# Get the URI of a DNC list export.
|
1805
|
+
#
|
1806
|
+
# @param dnc_list_id DncList ID
|
1807
|
+
# @param [Hash] opts the optional parameters
|
1808
|
+
# @option opts [String] :download Redirect to download uri (default to false)
|
1809
|
+
# @return [ExportUri]
|
1810
|
+
def get_dnclists_dnclist_id_export(dnc_list_id, opts = {})
|
1811
|
+
data, status_code, headers = get_dnclists_dnclist_id_export_with_http_info(dnc_list_id, opts)
|
1812
|
+
return data
|
1813
|
+
end
|
1814
|
+
|
1815
|
+
# Get the URI of a DNC list export.
|
1816
|
+
#
|
1817
|
+
# @param dnc_list_id DncList ID
|
1818
|
+
# @param [Hash] opts the optional parameters
|
1819
|
+
# @option opts [String] :download Redirect to download uri
|
1820
|
+
# @return [Array<(ExportUri, Fixnum, Hash)>] ExportUri data, response status code and response headers
|
1821
|
+
def get_dnclists_dnclist_id_export_with_http_info(dnc_list_id, opts = {})
|
1822
|
+
if @api_client.config.debugging
|
1823
|
+
@api_client.config.logger.debug "Calling API: OutboundApi#get_dnclists_dnclist_id_export ..."
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
# verify the required parameter 'dnc_list_id' is set
|
1827
|
+
fail "Missing the required parameter 'dnc_list_id' when calling get_dnclists_dnclist_id_export" if dnc_list_id.nil?
|
1828
|
+
|
1829
|
+
# resource path
|
1830
|
+
local_var_path = "/api/v2/outbound/dnclists/{dncListId}/export".sub('{format}','json').sub('{' + 'dncListId' + '}', dnc_list_id.to_s)
|
1831
|
+
|
1832
|
+
# query parameters
|
1833
|
+
query_params = {}
|
1834
|
+
query_params[:'download'] = opts[:'download'] if opts[:'download']
|
1835
|
+
|
1836
|
+
# header parameters
|
1837
|
+
header_params = {}
|
1838
|
+
|
1839
|
+
# HTTP header 'Accept' (if needed)
|
1840
|
+
_header_accept = ['application/json']
|
1841
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1842
|
+
|
1843
|
+
# HTTP header 'Content-Type'
|
1844
|
+
_header_content_type = ['application/json']
|
1845
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1846
|
+
|
1847
|
+
# form parameters
|
1848
|
+
form_params = {}
|
1849
|
+
|
1850
|
+
# http body (model)
|
1851
|
+
post_body = nil
|
1852
|
+
|
1853
|
+
auth_names = ['PureCloud Auth']
|
1854
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1855
|
+
:header_params => header_params,
|
1856
|
+
:query_params => query_params,
|
1857
|
+
:form_params => form_params,
|
1858
|
+
:body => post_body,
|
1859
|
+
:auth_names => auth_names,
|
1860
|
+
:return_type => 'ExportUri')
|
1861
|
+
if @api_client.config.debugging
|
1862
|
+
@api_client.config.logger.debug "API called: OutboundApi#get_dnclists_dnclist_id_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1863
|
+
end
|
1864
|
+
return data, status_code, headers
|
1865
|
+
end
|
1866
|
+
|
1741
1867
|
# Get dialer dncList import status.
|
1742
1868
|
#
|
1743
1869
|
# @param dnc_list_id DncList ID
|
@@ -90,7 +90,7 @@ module PureCloud
|
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @option opts [String] :q64
|
92
92
|
# @option opts [Array<String>] :expand
|
93
|
-
# @return [
|
93
|
+
# @return [GroupsSearchResponse]
|
94
94
|
def get_search_0(opts = {})
|
95
95
|
data, status_code, headers = get_search_0_with_http_info(opts)
|
96
96
|
return data
|
@@ -101,14 +101,14 @@ module PureCloud
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @option opts [String] :q64
|
103
103
|
# @option opts [Array<String>] :expand
|
104
|
-
# @return [Array<(
|
104
|
+
# @return [Array<(GroupsSearchResponse, Fixnum, Hash)>] GroupsSearchResponse data, response status code and response headers
|
105
105
|
def get_search_0_with_http_info(opts = {})
|
106
106
|
if @api_client.config.debugging
|
107
107
|
@api_client.config.logger.debug "Calling API: SearchApi#get_search_0 ..."
|
108
108
|
end
|
109
109
|
|
110
110
|
# resource path
|
111
|
-
local_var_path = "/api/v2/search".sub('{format}','json')
|
111
|
+
local_var_path = "/api/v2/locations/search".sub('{format}','json')
|
112
112
|
|
113
113
|
# query parameters
|
114
114
|
query_params = {}
|
@@ -139,7 +139,7 @@ module PureCloud
|
|
139
139
|
:form_params => form_params,
|
140
140
|
:body => post_body,
|
141
141
|
:auth_names => auth_names,
|
142
|
-
:return_type => '
|
142
|
+
:return_type => 'GroupsSearchResponse')
|
143
143
|
if @api_client.config.debugging
|
144
144
|
@api_client.config.logger.debug "API called: SearchApi#get_search_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
145
|
end
|
@@ -151,7 +151,8 @@ module PureCloud
|
|
151
151
|
# @param [Hash] opts the optional parameters
|
152
152
|
# @option opts [String] :q64
|
153
153
|
# @option opts [Array<String>] :expand
|
154
|
-
# @
|
154
|
+
# @option opts [BOOLEAN] :profile (default to true)
|
155
|
+
# @return [JsonNodeSearchResponse]
|
155
156
|
def get_search_1(opts = {})
|
156
157
|
data, status_code, headers = get_search_1_with_http_info(opts)
|
157
158
|
return data
|
@@ -162,12 +163,75 @@ module PureCloud
|
|
162
163
|
# @param [Hash] opts the optional parameters
|
163
164
|
# @option opts [String] :q64
|
164
165
|
# @option opts [Array<String>] :expand
|
165
|
-
# @
|
166
|
+
# @option opts [BOOLEAN] :profile
|
167
|
+
# @return [Array<(JsonNodeSearchResponse, Fixnum, Hash)>] JsonNodeSearchResponse data, response status code and response headers
|
166
168
|
def get_search_1_with_http_info(opts = {})
|
167
169
|
if @api_client.config.debugging
|
168
170
|
@api_client.config.logger.debug "Calling API: SearchApi#get_search_1 ..."
|
169
171
|
end
|
170
172
|
|
173
|
+
# resource path
|
174
|
+
local_var_path = "/api/v2/search".sub('{format}','json')
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = {}
|
178
|
+
query_params[:'q64'] = opts[:'q64'] if opts[:'q64']
|
179
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
|
180
|
+
query_params[:'profile'] = opts[:'profile'] if opts[:'profile']
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = {}
|
184
|
+
|
185
|
+
# HTTP header 'Accept' (if needed)
|
186
|
+
_header_accept = ['application/json']
|
187
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
188
|
+
|
189
|
+
# HTTP header 'Content-Type'
|
190
|
+
_header_content_type = ['application/json']
|
191
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
192
|
+
|
193
|
+
# form parameters
|
194
|
+
form_params = {}
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = nil
|
198
|
+
|
199
|
+
auth_names = ['PureCloud Auth']
|
200
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
201
|
+
:header_params => header_params,
|
202
|
+
:query_params => query_params,
|
203
|
+
:form_params => form_params,
|
204
|
+
:body => post_body,
|
205
|
+
:auth_names => auth_names,
|
206
|
+
:return_type => 'JsonNodeSearchResponse')
|
207
|
+
if @api_client.config.debugging
|
208
|
+
@api_client.config.logger.debug "API called: SearchApi#get_search_1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
|
+
end
|
210
|
+
return data, status_code, headers
|
211
|
+
end
|
212
|
+
|
213
|
+
# Search using q64
|
214
|
+
#
|
215
|
+
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [String] :q64
|
217
|
+
# @option opts [Array<String>] :expand
|
218
|
+
# @return [UsersSearchResponse]
|
219
|
+
def get_search_2(opts = {})
|
220
|
+
data, status_code, headers = get_search_2_with_http_info(opts)
|
221
|
+
return data
|
222
|
+
end
|
223
|
+
|
224
|
+
# Search using q64
|
225
|
+
#
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [String] :q64
|
228
|
+
# @option opts [Array<String>] :expand
|
229
|
+
# @return [Array<(UsersSearchResponse, Fixnum, Hash)>] UsersSearchResponse data, response status code and response headers
|
230
|
+
def get_search_2_with_http_info(opts = {})
|
231
|
+
if @api_client.config.debugging
|
232
|
+
@api_client.config.logger.debug "Calling API: SearchApi#get_search_2 ..."
|
233
|
+
end
|
234
|
+
|
171
235
|
# resource path
|
172
236
|
local_var_path = "/api/v2/users/search".sub('{format}','json')
|
173
237
|
|
@@ -202,7 +266,68 @@ module PureCloud
|
|
202
266
|
:auth_names => auth_names,
|
203
267
|
:return_type => 'UsersSearchResponse')
|
204
268
|
if @api_client.config.debugging
|
205
|
-
@api_client.config.logger.debug "API called: SearchApi#
|
269
|
+
@api_client.config.logger.debug "API called: SearchApi#get_search_2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
270
|
+
end
|
271
|
+
return data, status_code, headers
|
272
|
+
end
|
273
|
+
|
274
|
+
# Suggest using q64
|
275
|
+
#
|
276
|
+
# @param [Hash] opts the optional parameters
|
277
|
+
# @option opts [String] :q64
|
278
|
+
# @option opts [BOOLEAN] :profile (default to true)
|
279
|
+
# @return [JsonNodeSearchResponse]
|
280
|
+
def get_suggest(opts = {})
|
281
|
+
data, status_code, headers = get_suggest_with_http_info(opts)
|
282
|
+
return data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Suggest using q64
|
286
|
+
#
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @option opts [String] :q64
|
289
|
+
# @option opts [BOOLEAN] :profile
|
290
|
+
# @return [Array<(JsonNodeSearchResponse, Fixnum, Hash)>] JsonNodeSearchResponse data, response status code and response headers
|
291
|
+
def get_suggest_with_http_info(opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug "Calling API: SearchApi#get_suggest ..."
|
294
|
+
end
|
295
|
+
|
296
|
+
# resource path
|
297
|
+
local_var_path = "/api/v2/search/suggest".sub('{format}','json')
|
298
|
+
|
299
|
+
# query parameters
|
300
|
+
query_params = {}
|
301
|
+
query_params[:'q64'] = opts[:'q64'] if opts[:'q64']
|
302
|
+
query_params[:'profile'] = opts[:'profile'] if opts[:'profile']
|
303
|
+
|
304
|
+
# header parameters
|
305
|
+
header_params = {}
|
306
|
+
|
307
|
+
# HTTP header 'Accept' (if needed)
|
308
|
+
_header_accept = ['application/json']
|
309
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
310
|
+
|
311
|
+
# HTTP header 'Content-Type'
|
312
|
+
_header_content_type = ['application/json']
|
313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
314
|
+
|
315
|
+
# form parameters
|
316
|
+
form_params = {}
|
317
|
+
|
318
|
+
# http body (model)
|
319
|
+
post_body = nil
|
320
|
+
|
321
|
+
auth_names = ['PureCloud Auth']
|
322
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
323
|
+
:header_params => header_params,
|
324
|
+
:query_params => query_params,
|
325
|
+
:form_params => form_params,
|
326
|
+
:body => post_body,
|
327
|
+
:auth_names => auth_names,
|
328
|
+
:return_type => 'JsonNodeSearchResponse')
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug "API called: SearchApi#get_suggest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
331
|
end
|
207
332
|
return data, status_code, headers
|
208
333
|
end
|
@@ -268,7 +393,7 @@ module PureCloud
|
|
268
393
|
#
|
269
394
|
# @param [Hash] opts the optional parameters
|
270
395
|
# @option opts [SearchRequest] :body Search request options
|
271
|
-
# @return [
|
396
|
+
# @return [GroupsSearchResponse]
|
272
397
|
def post_search_0(opts = {})
|
273
398
|
data, status_code, headers = post_search_0_with_http_info(opts)
|
274
399
|
return data
|
@@ -278,14 +403,14 @@ module PureCloud
|
|
278
403
|
#
|
279
404
|
# @param [Hash] opts the optional parameters
|
280
405
|
# @option opts [SearchRequest] :body Search request options
|
281
|
-
# @return [Array<(
|
406
|
+
# @return [Array<(GroupsSearchResponse, Fixnum, Hash)>] GroupsSearchResponse data, response status code and response headers
|
282
407
|
def post_search_0_with_http_info(opts = {})
|
283
408
|
if @api_client.config.debugging
|
284
409
|
@api_client.config.logger.debug "Calling API: SearchApi#post_search_0 ..."
|
285
410
|
end
|
286
411
|
|
287
412
|
# resource path
|
288
|
-
local_var_path = "/api/v2/search".sub('{format}','json')
|
413
|
+
local_var_path = "/api/v2/locations/search".sub('{format}','json')
|
289
414
|
|
290
415
|
# query parameters
|
291
416
|
query_params = {}
|
@@ -314,7 +439,7 @@ module PureCloud
|
|
314
439
|
:form_params => form_params,
|
315
440
|
:body => post_body,
|
316
441
|
:auth_names => auth_names,
|
317
|
-
:return_type => '
|
442
|
+
:return_type => 'GroupsSearchResponse')
|
318
443
|
if @api_client.config.debugging
|
319
444
|
@api_client.config.logger.debug "API called: SearchApi#post_search_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
320
445
|
end
|
@@ -325,7 +450,8 @@ module PureCloud
|
|
325
450
|
#
|
326
451
|
# @param [Hash] opts the optional parameters
|
327
452
|
# @option opts [SearchRequest] :body Search request options
|
328
|
-
# @
|
453
|
+
# @option opts [BOOLEAN] :profile (default to true)
|
454
|
+
# @return [JsonNodeSearchResponse]
|
329
455
|
def post_search_1(opts = {})
|
330
456
|
data, status_code, headers = post_search_1_with_http_info(opts)
|
331
457
|
return data
|
@@ -335,12 +461,71 @@ module PureCloud
|
|
335
461
|
#
|
336
462
|
# @param [Hash] opts the optional parameters
|
337
463
|
# @option opts [SearchRequest] :body Search request options
|
338
|
-
# @
|
464
|
+
# @option opts [BOOLEAN] :profile
|
465
|
+
# @return [Array<(JsonNodeSearchResponse, Fixnum, Hash)>] JsonNodeSearchResponse data, response status code and response headers
|
339
466
|
def post_search_1_with_http_info(opts = {})
|
340
467
|
if @api_client.config.debugging
|
341
468
|
@api_client.config.logger.debug "Calling API: SearchApi#post_search_1 ..."
|
342
469
|
end
|
343
470
|
|
471
|
+
# resource path
|
472
|
+
local_var_path = "/api/v2/search".sub('{format}','json')
|
473
|
+
|
474
|
+
# query parameters
|
475
|
+
query_params = {}
|
476
|
+
query_params[:'profile'] = opts[:'profile'] if opts[:'profile']
|
477
|
+
|
478
|
+
# header parameters
|
479
|
+
header_params = {}
|
480
|
+
|
481
|
+
# HTTP header 'Accept' (if needed)
|
482
|
+
_header_accept = ['application/json']
|
483
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
484
|
+
|
485
|
+
# HTTP header 'Content-Type'
|
486
|
+
_header_content_type = ['application/json']
|
487
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
488
|
+
|
489
|
+
# form parameters
|
490
|
+
form_params = {}
|
491
|
+
|
492
|
+
# http body (model)
|
493
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
494
|
+
|
495
|
+
auth_names = ['PureCloud Auth']
|
496
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
497
|
+
:header_params => header_params,
|
498
|
+
:query_params => query_params,
|
499
|
+
:form_params => form_params,
|
500
|
+
:body => post_body,
|
501
|
+
:auth_names => auth_names,
|
502
|
+
:return_type => 'JsonNodeSearchResponse')
|
503
|
+
if @api_client.config.debugging
|
504
|
+
@api_client.config.logger.debug "API called: SearchApi#post_search_1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
505
|
+
end
|
506
|
+
return data, status_code, headers
|
507
|
+
end
|
508
|
+
|
509
|
+
# Search
|
510
|
+
#
|
511
|
+
# @param [Hash] opts the optional parameters
|
512
|
+
# @option opts [SearchRequest] :body Search request options
|
513
|
+
# @return [UsersSearchResponse]
|
514
|
+
def post_search_2(opts = {})
|
515
|
+
data, status_code, headers = post_search_2_with_http_info(opts)
|
516
|
+
return data
|
517
|
+
end
|
518
|
+
|
519
|
+
# Search
|
520
|
+
#
|
521
|
+
# @param [Hash] opts the optional parameters
|
522
|
+
# @option opts [SearchRequest] :body Search request options
|
523
|
+
# @return [Array<(UsersSearchResponse, Fixnum, Hash)>] UsersSearchResponse data, response status code and response headers
|
524
|
+
def post_search_2_with_http_info(opts = {})
|
525
|
+
if @api_client.config.debugging
|
526
|
+
@api_client.config.logger.debug "Calling API: SearchApi#post_search_2 ..."
|
527
|
+
end
|
528
|
+
|
344
529
|
# resource path
|
345
530
|
local_var_path = "/api/v2/users/search".sub('{format}','json')
|
346
531
|
|
@@ -373,7 +558,67 @@ module PureCloud
|
|
373
558
|
:auth_names => auth_names,
|
374
559
|
:return_type => 'UsersSearchResponse')
|
375
560
|
if @api_client.config.debugging
|
376
|
-
@api_client.config.logger.debug "API called: SearchApi#
|
561
|
+
@api_client.config.logger.debug "API called: SearchApi#post_search_2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
562
|
+
end
|
563
|
+
return data, status_code, headers
|
564
|
+
end
|
565
|
+
|
566
|
+
# Suggest
|
567
|
+
#
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @option opts [SearchRequest] :body Search request options
|
570
|
+
# @option opts [BOOLEAN] :profile (default to true)
|
571
|
+
# @return [JsonNodeSearchResponse]
|
572
|
+
def post_suggest(opts = {})
|
573
|
+
data, status_code, headers = post_suggest_with_http_info(opts)
|
574
|
+
return data
|
575
|
+
end
|
576
|
+
|
577
|
+
# Suggest
|
578
|
+
#
|
579
|
+
# @param [Hash] opts the optional parameters
|
580
|
+
# @option opts [SearchRequest] :body Search request options
|
581
|
+
# @option opts [BOOLEAN] :profile
|
582
|
+
# @return [Array<(JsonNodeSearchResponse, Fixnum, Hash)>] JsonNodeSearchResponse data, response status code and response headers
|
583
|
+
def post_suggest_with_http_info(opts = {})
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug "Calling API: SearchApi#post_suggest ..."
|
586
|
+
end
|
587
|
+
|
588
|
+
# resource path
|
589
|
+
local_var_path = "/api/v2/search/suggest".sub('{format}','json')
|
590
|
+
|
591
|
+
# query parameters
|
592
|
+
query_params = {}
|
593
|
+
query_params[:'profile'] = opts[:'profile'] if opts[:'profile']
|
594
|
+
|
595
|
+
# header parameters
|
596
|
+
header_params = {}
|
597
|
+
|
598
|
+
# HTTP header 'Accept' (if needed)
|
599
|
+
_header_accept = ['application/json']
|
600
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
601
|
+
|
602
|
+
# HTTP header 'Content-Type'
|
603
|
+
_header_content_type = ['application/json']
|
604
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
605
|
+
|
606
|
+
# form parameters
|
607
|
+
form_params = {}
|
608
|
+
|
609
|
+
# http body (model)
|
610
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
611
|
+
|
612
|
+
auth_names = ['PureCloud Auth']
|
613
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
614
|
+
:header_params => header_params,
|
615
|
+
:query_params => query_params,
|
616
|
+
:form_params => form_params,
|
617
|
+
:body => post_body,
|
618
|
+
:auth_names => auth_names,
|
619
|
+
:return_type => 'JsonNodeSearchResponse')
|
620
|
+
if @api_client.config.debugging
|
621
|
+
@api_client.config.logger.debug "API called: SearchApi#post_suggest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
622
|
end
|
378
623
|
return data, status_code, headers
|
379
624
|
end
|