purecloudplatformclientv2 48.2.0 → 49.0.0
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 +2 -2
- data/docs/AnalyticsFlow.md +2 -0
- data/docs/AnalyticsSession.md +7 -0
- data/docs/AuthorizationApi.md +1 -2
- data/docs/ExternalContact.md +1 -0
- data/docs/LocationDefinition.md +1 -1
- data/docs/LocationUpdateDefinition.md +19 -0
- data/docs/LocationsApi.md +202 -0
- data/docs/OAuthClient.md +1 -0
- data/docs/OAuthClientListing.md +1 -0
- data/docs/ObjectsApi.md +1 -2
- data/docs/OrgOAuthClient.md +1 -0
- data/docs/RoleDivision.md +14 -0
- data/docs/ViewFilter.md +9 -0
- data/docs/WebChatDeployment.md +1 -0
- data/docs/WhatsAppId.md +14 -0
- data/lib/purecloudplatformclientv2.rb +3 -3
- data/lib/purecloudplatformclientv2/api/locations_api.rb +213 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/analytics_flow.rb +67 -1
- data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/analytics_session.rb +186 -4
- data/lib/purecloudplatformclientv2/models/external_contact.rb +26 -1
- data/lib/purecloudplatformclientv2/models/location_definition.rb +6 -0
- data/lib/purecloudplatformclientv2/models/{attribute_entity_listing.rb → location_update_definition.rb} +62 -121
- data/lib/purecloudplatformclientv2/models/o_auth_client.rb +29 -1
- data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +29 -1
- data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +29 -1
- data/lib/purecloudplatformclientv2/models/reporting_export_job_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/{attribute_query_request.rb → role_division.rb} +24 -41
- data/lib/purecloudplatformclientv2/models/subject_division_grants.rb +2 -2
- data/lib/purecloudplatformclientv2/models/view_filter.rb +256 -4
- data/lib/purecloudplatformclientv2/models/web_chat_deployment.rb +28 -1
- data/lib/purecloudplatformclientv2/models/whats_app_id.rb +229 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +8 -8
- data/docs/AttributeEntityListing.md +0 -22
- data/docs/AttributeQueryRequest.md +0 -15
- data/docs/AttributesApi.md +0 -407
- data/lib/purecloudplatformclientv2/api/attributes_api.rb +0 -434
@@ -1,434 +0,0 @@
|
|
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@genesys.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 AttributesApi
|
21
|
-
attr_accessor :api_client
|
22
|
-
|
23
|
-
def initialize(api_client = ApiClient.default)
|
24
|
-
@api_client = api_client
|
25
|
-
end
|
26
|
-
|
27
|
-
# Delete an existing Attribute.
|
28
|
-
# This will remove attribute.
|
29
|
-
# @param attribute_id Attribute ID
|
30
|
-
# @param [Hash] opts the optional parameters
|
31
|
-
# @return [nil]
|
32
|
-
def delete_attribute(attribute_id, opts = {})
|
33
|
-
delete_attribute_with_http_info(attribute_id, opts)
|
34
|
-
return nil
|
35
|
-
end
|
36
|
-
|
37
|
-
# Delete an existing Attribute.
|
38
|
-
# This will remove attribute.
|
39
|
-
# @param attribute_id Attribute ID
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
|
-
def delete_attribute_with_http_info(attribute_id, opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.delete_attribute ..."
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
# verify the required parameter 'attribute_id' is set
|
49
|
-
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling AttributesApi.delete_attribute" if attribute_id.nil?
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
# resource path
|
56
|
-
local_var_path = "/api/v2/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
57
|
-
|
58
|
-
# query parameters
|
59
|
-
query_params = {}
|
60
|
-
|
61
|
-
# header parameters
|
62
|
-
header_params = {}
|
63
|
-
|
64
|
-
# HTTP header 'Accept' (if needed)
|
65
|
-
local_header_accept = ['application/json']
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
68
|
-
# HTTP header 'Content-Type'
|
69
|
-
local_header_content_type = ['application/json']
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
-
|
72
|
-
# form parameters
|
73
|
-
form_params = {}
|
74
|
-
|
75
|
-
# http body (model)
|
76
|
-
post_body = nil
|
77
|
-
|
78
|
-
auth_names = ['PureCloud OAuth']
|
79
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
80
|
-
:header_params => header_params,
|
81
|
-
:query_params => query_params,
|
82
|
-
:form_params => form_params,
|
83
|
-
:body => post_body,
|
84
|
-
:auth_names => auth_names)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: AttributesApi#delete_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
|
91
|
-
# Get details about an existing attribute.
|
92
|
-
#
|
93
|
-
# @param attribute_id Attribute ID
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [Attribute]
|
96
|
-
def get_attribute(attribute_id, opts = {})
|
97
|
-
data, _status_code, _headers = get_attribute_with_http_info(attribute_id, opts)
|
98
|
-
return data
|
99
|
-
end
|
100
|
-
|
101
|
-
# Get details about an existing attribute.
|
102
|
-
#
|
103
|
-
# @param attribute_id Attribute ID
|
104
|
-
# @param [Hash] opts the optional parameters
|
105
|
-
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
106
|
-
def get_attribute_with_http_info(attribute_id, opts = {})
|
107
|
-
if @api_client.config.debugging
|
108
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.get_attribute ..."
|
109
|
-
end
|
110
|
-
|
111
|
-
|
112
|
-
# verify the required parameter 'attribute_id' is set
|
113
|
-
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling AttributesApi.get_attribute" if attribute_id.nil?
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
# resource path
|
120
|
-
local_var_path = "/api/v2/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
121
|
-
|
122
|
-
# query parameters
|
123
|
-
query_params = {}
|
124
|
-
|
125
|
-
# header parameters
|
126
|
-
header_params = {}
|
127
|
-
|
128
|
-
# HTTP header 'Accept' (if needed)
|
129
|
-
local_header_accept = ['application/json']
|
130
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
131
|
-
|
132
|
-
# HTTP header 'Content-Type'
|
133
|
-
local_header_content_type = ['application/json']
|
134
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
135
|
-
|
136
|
-
# form parameters
|
137
|
-
form_params = {}
|
138
|
-
|
139
|
-
# http body (model)
|
140
|
-
post_body = nil
|
141
|
-
|
142
|
-
auth_names = ['PureCloud OAuth']
|
143
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
144
|
-
:header_params => header_params,
|
145
|
-
:query_params => query_params,
|
146
|
-
:form_params => form_params,
|
147
|
-
:body => post_body,
|
148
|
-
:auth_names => auth_names,
|
149
|
-
:return_type => 'Attribute')
|
150
|
-
if @api_client.config.debugging
|
151
|
-
@api_client.config.logger.debug "API called: AttributesApi#get_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
-
end
|
153
|
-
return data, status_code, headers
|
154
|
-
end
|
155
|
-
|
156
|
-
# Gets a list of existing attributes.
|
157
|
-
#
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @option opts [Integer] :page_number Page number (default to 1)
|
160
|
-
# @option opts [Integer] :page_size Page size (default to 25)
|
161
|
-
# @return [AttributeEntityListing]
|
162
|
-
def get_attributes(opts = {})
|
163
|
-
data, _status_code, _headers = get_attributes_with_http_info(opts)
|
164
|
-
return data
|
165
|
-
end
|
166
|
-
|
167
|
-
# Gets a list of existing attributes.
|
168
|
-
#
|
169
|
-
# @param [Hash] opts the optional parameters
|
170
|
-
# @option opts [Integer] :page_number Page number
|
171
|
-
# @option opts [Integer] :page_size Page size
|
172
|
-
# @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers
|
173
|
-
def get_attributes_with_http_info(opts = {})
|
174
|
-
if @api_client.config.debugging
|
175
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.get_attributes ..."
|
176
|
-
end
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
# resource path
|
191
|
-
local_var_path = "/api/v2/attributes".sub('{format}','json')
|
192
|
-
|
193
|
-
# query parameters
|
194
|
-
query_params = {}
|
195
|
-
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
196
|
-
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
197
|
-
|
198
|
-
# header parameters
|
199
|
-
header_params = {}
|
200
|
-
|
201
|
-
# HTTP header 'Accept' (if needed)
|
202
|
-
local_header_accept = ['application/json']
|
203
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
204
|
-
|
205
|
-
# HTTP header 'Content-Type'
|
206
|
-
local_header_content_type = ['application/json']
|
207
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
208
|
-
|
209
|
-
# form parameters
|
210
|
-
form_params = {}
|
211
|
-
|
212
|
-
# http body (model)
|
213
|
-
post_body = nil
|
214
|
-
|
215
|
-
auth_names = ['PureCloud OAuth']
|
216
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
217
|
-
:header_params => header_params,
|
218
|
-
:query_params => query_params,
|
219
|
-
:form_params => form_params,
|
220
|
-
:body => post_body,
|
221
|
-
:auth_names => auth_names,
|
222
|
-
:return_type => 'AttributeEntityListing')
|
223
|
-
if @api_client.config.debugging
|
224
|
-
@api_client.config.logger.debug "API called: AttributesApi#get_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
225
|
-
end
|
226
|
-
return data, status_code, headers
|
227
|
-
end
|
228
|
-
|
229
|
-
# Create an attribute.
|
230
|
-
#
|
231
|
-
# @param body Attribute
|
232
|
-
# @param [Hash] opts the optional parameters
|
233
|
-
# @return [Attribute]
|
234
|
-
def post_attributes(body, opts = {})
|
235
|
-
data, _status_code, _headers = post_attributes_with_http_info(body, opts)
|
236
|
-
return data
|
237
|
-
end
|
238
|
-
|
239
|
-
# Create an attribute.
|
240
|
-
#
|
241
|
-
# @param body Attribute
|
242
|
-
# @param [Hash] opts the optional parameters
|
243
|
-
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
244
|
-
def post_attributes_with_http_info(body, opts = {})
|
245
|
-
if @api_client.config.debugging
|
246
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.post_attributes ..."
|
247
|
-
end
|
248
|
-
|
249
|
-
|
250
|
-
# verify the required parameter 'body' is set
|
251
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling AttributesApi.post_attributes" if body.nil?
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
# resource path
|
258
|
-
local_var_path = "/api/v2/attributes".sub('{format}','json')
|
259
|
-
|
260
|
-
# query parameters
|
261
|
-
query_params = {}
|
262
|
-
|
263
|
-
# header parameters
|
264
|
-
header_params = {}
|
265
|
-
|
266
|
-
# HTTP header 'Accept' (if needed)
|
267
|
-
local_header_accept = ['application/json']
|
268
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
269
|
-
|
270
|
-
# HTTP header 'Content-Type'
|
271
|
-
local_header_content_type = ['application/json']
|
272
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
273
|
-
|
274
|
-
# form parameters
|
275
|
-
form_params = {}
|
276
|
-
|
277
|
-
# http body (model)
|
278
|
-
post_body = @api_client.object_to_http_body(body)
|
279
|
-
|
280
|
-
auth_names = ['PureCloud OAuth']
|
281
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
282
|
-
:header_params => header_params,
|
283
|
-
:query_params => query_params,
|
284
|
-
:form_params => form_params,
|
285
|
-
:body => post_body,
|
286
|
-
:auth_names => auth_names,
|
287
|
-
:return_type => 'Attribute')
|
288
|
-
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug "API called: AttributesApi#post_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
290
|
-
end
|
291
|
-
return data, status_code, headers
|
292
|
-
end
|
293
|
-
|
294
|
-
# Query attributes
|
295
|
-
#
|
296
|
-
# @param body query
|
297
|
-
# @param [Hash] opts the optional parameters
|
298
|
-
# @return [AttributeEntityListing]
|
299
|
-
def post_attributes_query(body, opts = {})
|
300
|
-
data, _status_code, _headers = post_attributes_query_with_http_info(body, opts)
|
301
|
-
return data
|
302
|
-
end
|
303
|
-
|
304
|
-
# Query attributes
|
305
|
-
#
|
306
|
-
# @param body query
|
307
|
-
# @param [Hash] opts the optional parameters
|
308
|
-
# @return [Array<(AttributeEntityListing, Fixnum, Hash)>] AttributeEntityListing data, response status code and response headers
|
309
|
-
def post_attributes_query_with_http_info(body, opts = {})
|
310
|
-
if @api_client.config.debugging
|
311
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.post_attributes_query ..."
|
312
|
-
end
|
313
|
-
|
314
|
-
|
315
|
-
# verify the required parameter 'body' is set
|
316
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling AttributesApi.post_attributes_query" if body.nil?
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
# resource path
|
323
|
-
local_var_path = "/api/v2/attributes/query".sub('{format}','json')
|
324
|
-
|
325
|
-
# query parameters
|
326
|
-
query_params = {}
|
327
|
-
|
328
|
-
# header parameters
|
329
|
-
header_params = {}
|
330
|
-
|
331
|
-
# HTTP header 'Accept' (if needed)
|
332
|
-
local_header_accept = ['application/json']
|
333
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
334
|
-
|
335
|
-
# HTTP header 'Content-Type'
|
336
|
-
local_header_content_type = ['application/json']
|
337
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
338
|
-
|
339
|
-
# form parameters
|
340
|
-
form_params = {}
|
341
|
-
|
342
|
-
# http body (model)
|
343
|
-
post_body = @api_client.object_to_http_body(body)
|
344
|
-
|
345
|
-
auth_names = ['PureCloud OAuth']
|
346
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
347
|
-
:header_params => header_params,
|
348
|
-
:query_params => query_params,
|
349
|
-
:form_params => form_params,
|
350
|
-
:body => post_body,
|
351
|
-
:auth_names => auth_names,
|
352
|
-
:return_type => 'AttributeEntityListing')
|
353
|
-
if @api_client.config.debugging
|
354
|
-
@api_client.config.logger.debug "API called: AttributesApi#post_attributes_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
355
|
-
end
|
356
|
-
return data, status_code, headers
|
357
|
-
end
|
358
|
-
|
359
|
-
# Update an existing attribute.
|
360
|
-
# Fields that can be updated: name, description. The most recent version is required for updates.
|
361
|
-
# @param attribute_id Attribute ID
|
362
|
-
# @param body Attribute
|
363
|
-
# @param [Hash] opts the optional parameters
|
364
|
-
# @return [Attribute]
|
365
|
-
def put_attribute(attribute_id, body, opts = {})
|
366
|
-
data, _status_code, _headers = put_attribute_with_http_info(attribute_id, body, opts)
|
367
|
-
return data
|
368
|
-
end
|
369
|
-
|
370
|
-
# Update an existing attribute.
|
371
|
-
# Fields that can be updated: name, description. The most recent version is required for updates.
|
372
|
-
# @param attribute_id Attribute ID
|
373
|
-
# @param body Attribute
|
374
|
-
# @param [Hash] opts the optional parameters
|
375
|
-
# @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
|
376
|
-
def put_attribute_with_http_info(attribute_id, body, opts = {})
|
377
|
-
if @api_client.config.debugging
|
378
|
-
@api_client.config.logger.debug "Calling API: AttributesApi.put_attribute ..."
|
379
|
-
end
|
380
|
-
|
381
|
-
|
382
|
-
# verify the required parameter 'attribute_id' is set
|
383
|
-
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling AttributesApi.put_attribute" if attribute_id.nil?
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
# verify the required parameter 'body' is set
|
391
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling AttributesApi.put_attribute" if body.nil?
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
# resource path
|
398
|
-
local_var_path = "/api/v2/attributes/{attributeId}".sub('{format}','json').sub('{' + 'attributeId' + '}', attribute_id.to_s)
|
399
|
-
|
400
|
-
# query parameters
|
401
|
-
query_params = {}
|
402
|
-
|
403
|
-
# header parameters
|
404
|
-
header_params = {}
|
405
|
-
|
406
|
-
# HTTP header 'Accept' (if needed)
|
407
|
-
local_header_accept = ['application/json']
|
408
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
409
|
-
|
410
|
-
# HTTP header 'Content-Type'
|
411
|
-
local_header_content_type = ['application/json']
|
412
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
413
|
-
|
414
|
-
# form parameters
|
415
|
-
form_params = {}
|
416
|
-
|
417
|
-
# http body (model)
|
418
|
-
post_body = @api_client.object_to_http_body(body)
|
419
|
-
|
420
|
-
auth_names = ['PureCloud OAuth']
|
421
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
422
|
-
:header_params => header_params,
|
423
|
-
:query_params => query_params,
|
424
|
-
:form_params => form_params,
|
425
|
-
:body => post_body,
|
426
|
-
:auth_names => auth_names,
|
427
|
-
:return_type => 'Attribute')
|
428
|
-
if @api_client.config.debugging
|
429
|
-
@api_client.config.logger.debug "API called: AttributesApi#put_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
430
|
-
end
|
431
|
-
return data, status_code, headers
|
432
|
-
end
|
433
|
-
end
|
434
|
-
end
|