purecloud 0.18.0 → 0.25.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/Gemfile +2 -2
- data/Gemfile.lock +2 -2
- data/README.md +1 -7
- data/config-ruby.json +1 -1
- data/extensions/auth.rb +2 -2
- data/lib/purecloud.rb +110 -75
- data/lib/purecloud/api/architect_api.rb +3127 -74
- data/lib/purecloud/api/attributes_api.rb +33 -33
- data/lib/purecloud/api/authorization_api.rb +83 -83
- data/lib/purecloud/api/compliance_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +594 -397
- data/lib/purecloud/api/content_management_api.rb +183 -183
- data/lib/purecloud/api/conversations_api.rb +289 -159
- data/lib/purecloud/api/downloads_api.rb +6 -6
- data/lib/purecloud/api/external_contacts_api.rb +1693 -0
- data/lib/purecloud/api/fax_api.rb +24 -24
- data/lib/purecloud/api/geolocation_api.rb +14 -14
- data/lib/purecloud/api/greetings_api.rb +68 -68
- data/lib/purecloud/api/groups_api.rb +31 -20
- data/lib/purecloud/api/languages_api.rb +18 -11
- data/lib/purecloud/api/licensing_api.rb +5 -5
- data/lib/purecloud/api/locations_api.rb +11 -11
- data/lib/purecloud/api/notifications_api.rb +41 -41
- data/lib/purecloud/api/o_auth_api.rb +69 -69
- data/lib/purecloud/api/outbound_api.rb +505 -325
- data/lib/purecloud/api/presence_api.rb +65 -65
- data/lib/purecloud/api/quality_api.rb +66 -639
- data/lib/purecloud/api/recording_api.rb +1343 -0
- data/lib/purecloud/api/response_management_api.rb +687 -0
- data/lib/purecloud/api/routing_api.rb +224 -170
- data/lib/purecloud/api/scripts_api.rb +52 -52
- data/lib/purecloud/api/search_api.rb +5 -5
- data/lib/purecloud/api/stations_api.rb +8 -8
- data/lib/purecloud/api/telephony_providers_edge_api.rb +138 -138
- data/lib/purecloud/api/user_recordings_api.rb +29 -29
- data/lib/purecloud/api/users_api.rb +123 -123
- data/lib/purecloud/api/utilities_api.rb +71 -15
- data/lib/purecloud/api/voicemail_api.rb +42 -42
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +238 -0
- data/lib/purecloud/models/available_additional_service.rb +40 -1
- data/lib/purecloud/models/{topic_entity_listing.rb → available_topic_entity_listing.rb} +1 -1
- data/lib/purecloud/models/call.rb +36 -5
- data/lib/purecloud/models/{line_properties.rb → call_command.rb} +13 -3
- data/lib/purecloud/models/callback.rb +15 -4
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_progress.rb +186 -0
- data/lib/purecloud/models/channel_topic_entity_listing.rb +238 -0
- data/lib/purecloud/models/charge.rb +14 -4
- data/lib/purecloud/models/{attribute_value.rb → client_text_table_transform.rb} +52 -82
- data/lib/purecloud/models/contact.rb +1 -1
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_listing.rb +238 -0
- data/lib/purecloud/models/content_attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/content_facet_filter_item.rb +1 -1
- data/lib/purecloud/models/content_query_request.rb +16 -4
- data/lib/purecloud/models/control.rb +221 -0
- data/lib/purecloud/models/{flow_activate_request.rb → control_options.rb} +18 -12
- data/lib/purecloud/models/create_callback_command.rb +200 -0
- data/lib/purecloud/models/discount.rb +220 -0
- data/lib/purecloud/models/document.rb +13 -1
- data/lib/purecloud/models/document_attribute.rb +158 -0
- data/lib/purecloud/models/document_update.rb +28 -16
- data/lib/purecloud/models/document_upload.rb +4 -16
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +1 -1
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_logs_job.rb +181 -0
- data/lib/purecloud/models/edge_logs_job_file.rb +243 -0
- data/lib/purecloud/models/edge_logs_job_request.rb +168 -0
- data/lib/purecloud/models/{backend_work_item_data_element.rb → edge_logs_job_response.rb} +16 -24
- data/lib/purecloud/models/{flow_lock_request.rb → edge_logs_job_upload_request.rb} +10 -12
- data/lib/purecloud/models/email.rb +15 -4
- data/lib/purecloud/models/endpoint.rb +1 -1
- data/lib/purecloud/models/{flow_associate_workspaces_request.rb → estimated_wait_time_predictions.rb} +10 -11
- data/lib/purecloud/models/external_contact.rb +320 -0
- data/lib/purecloud/models/external_organization.rb +306 -0
- data/lib/purecloud/models/external_organization_listing.rb +238 -0
- data/lib/purecloud/models/facet_filter_item.rb +1 -1
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_body_format.rb +10 -20
- data/lib/purecloud/models/flow_terminate_request.rb +3 -16
- data/lib/purecloud/models/form.rb +148 -0
- data/lib/purecloud/models/group.rb +11 -1
- data/lib/purecloud/models/health_check_info.rb +268 -0
- data/lib/purecloud/models/{body_2.rb → inline_response_200.rb} +1 -1
- data/lib/purecloud/models/integration_type.rb +209 -0
- data/lib/purecloud/models/integration_type_entity_listing.rb +238 -0
- data/lib/purecloud/models/key_rotation_schedule.rb +1 -0
- data/lib/purecloud/models/language.rb +41 -1
- data/lib/purecloud/models/line.rb +1 -1
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/media_policies.rb +169 -0
- data/lib/purecloud/models/media_policy.rb +171 -0
- data/lib/purecloud/models/note.rb +200 -0
- data/lib/purecloud/models/{user_station_resource.rb → note_listing.rb} +68 -58
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/{byte_buffer.rb → payment_method.rb} +48 -61
- data/lib/purecloud/models/payment_method_listing.rb +238 -0
- data/lib/purecloud/models/payment_token_provider.rb +180 -0
- data/lib/purecloud/models/phone.rb +1 -1
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_number.rb +198 -0
- data/lib/purecloud/models/phones_reboot.rb +14 -4
- data/lib/purecloud/models/policy.rb +14 -1
- data/lib/purecloud/models/prediction_results.rb +167 -0
- data/lib/purecloud/models/query_request.rb +16 -4
- data/lib/purecloud/models/queue_member_entity_listing.rb +1 -1
- data/lib/purecloud/models/quote.rb +13 -1
- data/lib/purecloud/models/recording_settings.rb +146 -0
- data/lib/purecloud/models/relationship.rb +201 -0
- data/lib/purecloud/models/relationship_listing.rb +238 -0
- data/lib/purecloud/models/report_schedule.rb +3 -2
- data/lib/purecloud/models/service_type.rb +12 -1
- data/lib/purecloud/models/social_expression.rb +25 -4
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/template.rb +1 -1
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/ticker.rb +158 -0
- data/lib/purecloud/models/time_slot.rb +1 -0
- data/lib/purecloud/models/trunk_base.rb +1 -1
- data/lib/purecloud/models/vendor_connection_request.rb +166 -0
- data/lib/purecloud/models/video.rb +15 -4
- data/lib/purecloud/models/work_item_definition.rb +8 -10
- data/lib/purecloud/version.rb +1 -1
- data/ossindex.json +17 -0
- data/purecloud.gemspec +4 -3
- data/rakefile +3 -15
- data/spec/test.rb +6 -3
- data/swagger.json +1 -1
- data/swagger_template/api_client.mustache +304 -0
- data/swagger_template/base_object.mustache +90 -0
- data/{PureCloud.gemspec → swagger_template/gemspec.mustache} +12 -11
- data/version.json +1 -1
- metadata +76 -25
- data/lib/purecloud/api/analytics_api.rb +0 -1554
- data/lib/purecloud/api/orphaned_recordings_api.rb +0 -205
- data/newVersion.md +0 -1
@@ -13,8 +13,8 @@ module PureCloud
|
|
13
13
|
# @param body Allows for a filtered query returning facet information
|
14
14
|
# @param [Hash] opts the optional parameters
|
15
15
|
# @return [QueryResults]
|
16
|
-
def
|
17
|
-
data, status_code, headers =
|
16
|
+
def post_auditquery(body, opts = {})
|
17
|
+
data, status_code, headers = post_auditquery_with_http_info(body, opts)
|
18
18
|
return data
|
19
19
|
end
|
20
20
|
|
@@ -23,13 +23,13 @@ module PureCloud
|
|
23
23
|
# @param body Allows for a filtered query returning facet information
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Array<(QueryResults, Fixnum, Hash)>] QueryResults data, response status code and response headers
|
26
|
-
def
|
26
|
+
def post_auditquery_with_http_info(body, opts = {})
|
27
27
|
if @api_client.config.debugging
|
28
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
28
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_auditquery ..."
|
29
29
|
end
|
30
30
|
|
31
31
|
# verify the required parameter 'body' is set
|
32
|
-
fail "Missing the required parameter 'body' when calling
|
32
|
+
fail "Missing the required parameter 'body' when calling post_auditquery" if body.nil?
|
33
33
|
|
34
34
|
# resource path
|
35
35
|
path = "/api/v1/contentmanagement/auditquery".sub('{format}','json')
|
@@ -64,7 +64,7 @@ module PureCloud
|
|
64
64
|
:auth_names => auth_names,
|
65
65
|
:return_type => 'QueryResults')
|
66
66
|
if @api_client.config.debugging
|
67
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
67
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_auditquery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
68
68
|
end
|
69
69
|
return data, status_code, headers
|
70
70
|
end
|
@@ -161,8 +161,8 @@ module PureCloud
|
|
161
161
|
# @option opts [String] :move_source Move a document to a new workspace. Provide a document ID as the move source.
|
162
162
|
# @option opts [BOOLEAN] :override Override any lock on the source document
|
163
163
|
# @return [Document]
|
164
|
-
def
|
165
|
-
data, status_code, headers =
|
164
|
+
def post_documents(opts = {})
|
165
|
+
data, status_code, headers = post_documents_with_http_info(opts)
|
166
166
|
return data
|
167
167
|
end
|
168
168
|
|
@@ -174,9 +174,9 @@ module PureCloud
|
|
174
174
|
# @option opts [String] :move_source Move a document to a new workspace. Provide a document ID as the move source.
|
175
175
|
# @option opts [BOOLEAN] :override Override any lock on the source document
|
176
176
|
# @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
|
177
|
-
def
|
177
|
+
def post_documents_with_http_info(opts = {})
|
178
178
|
if @api_client.config.debugging
|
179
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
179
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_documents ..."
|
180
180
|
end
|
181
181
|
|
182
182
|
# resource path
|
@@ -215,7 +215,7 @@ module PureCloud
|
|
215
215
|
:auth_names => auth_names,
|
216
216
|
:return_type => 'Document')
|
217
217
|
if @api_client.config.debugging
|
218
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
218
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
219
219
|
end
|
220
220
|
return data, status_code, headers
|
221
221
|
end
|
@@ -226,8 +226,8 @@ module PureCloud
|
|
226
226
|
# @param [Hash] opts the optional parameters
|
227
227
|
# @option opts [String] :expand Expand some document fields
|
228
228
|
# @return [Document]
|
229
|
-
def
|
230
|
-
data, status_code, headers =
|
229
|
+
def get_documents_document_id(document_id, opts = {})
|
230
|
+
data, status_code, headers = get_documents_document_id_with_http_info(document_id, opts)
|
231
231
|
return data
|
232
232
|
end
|
233
233
|
|
@@ -237,13 +237,13 @@ module PureCloud
|
|
237
237
|
# @param [Hash] opts the optional parameters
|
238
238
|
# @option opts [String] :expand Expand some document fields
|
239
239
|
# @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
|
240
|
-
def
|
240
|
+
def get_documents_document_id_with_http_info(document_id, opts = {})
|
241
241
|
if @api_client.config.debugging
|
242
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
242
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_documents_document_id ..."
|
243
243
|
end
|
244
244
|
|
245
245
|
# verify the required parameter 'document_id' is set
|
246
|
-
fail "Missing the required parameter 'document_id' when calling
|
246
|
+
fail "Missing the required parameter 'document_id' when calling get_documents_document_id" if document_id.nil?
|
247
247
|
|
248
248
|
if opts[:'expand'] && !['lockInfo', 'acl', 'workspace'].include?(opts[:'expand'])
|
249
249
|
fail 'invalid value for "expand", must be one of lockInfo, acl, workspace'
|
@@ -283,7 +283,7 @@ module PureCloud
|
|
283
283
|
:auth_names => auth_names,
|
284
284
|
:return_type => 'Document')
|
285
285
|
if @api_client.config.debugging
|
286
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
286
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
287
287
|
end
|
288
288
|
return data, status_code, headers
|
289
289
|
end
|
@@ -296,8 +296,8 @@ module PureCloud
|
|
296
296
|
# @option opts [String] :expand Expand some document fields
|
297
297
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
298
298
|
# @return [Document]
|
299
|
-
def
|
300
|
-
data, status_code, headers =
|
299
|
+
def post_documents_document_id(document_id, opts = {})
|
300
|
+
data, status_code, headers = post_documents_document_id_with_http_info(document_id, opts)
|
301
301
|
return data
|
302
302
|
end
|
303
303
|
|
@@ -309,13 +309,13 @@ module PureCloud
|
|
309
309
|
# @option opts [String] :expand Expand some document fields
|
310
310
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
311
311
|
# @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
|
312
|
-
def
|
312
|
+
def post_documents_document_id_with_http_info(document_id, opts = {})
|
313
313
|
if @api_client.config.debugging
|
314
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
314
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_documents_document_id ..."
|
315
315
|
end
|
316
316
|
|
317
317
|
# verify the required parameter 'document_id' is set
|
318
|
-
fail "Missing the required parameter 'document_id' when calling
|
318
|
+
fail "Missing the required parameter 'document_id' when calling post_documents_document_id" if document_id.nil?
|
319
319
|
|
320
320
|
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
|
321
321
|
fail 'invalid value for "expand", must be one of acl'
|
@@ -356,7 +356,7 @@ module PureCloud
|
|
356
356
|
:auth_names => auth_names,
|
357
357
|
:return_type => 'Document')
|
358
358
|
if @api_client.config.debugging
|
359
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
359
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
360
360
|
end
|
361
361
|
return data, status_code, headers
|
362
362
|
end
|
@@ -367,8 +367,8 @@ module PureCloud
|
|
367
367
|
# @param [Hash] opts the optional parameters
|
368
368
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
369
369
|
# @return [nil]
|
370
|
-
def
|
371
|
-
|
370
|
+
def delete_documents_document_id(document_id, opts = {})
|
371
|
+
delete_documents_document_id_with_http_info(document_id, opts)
|
372
372
|
return nil
|
373
373
|
end
|
374
374
|
|
@@ -378,13 +378,13 @@ module PureCloud
|
|
378
378
|
# @param [Hash] opts the optional parameters
|
379
379
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
380
380
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
381
|
-
def
|
381
|
+
def delete_documents_document_id_with_http_info(document_id, opts = {})
|
382
382
|
if @api_client.config.debugging
|
383
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
383
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_documents_document_id ..."
|
384
384
|
end
|
385
385
|
|
386
386
|
# verify the required parameter 'document_id' is set
|
387
|
-
fail "Missing the required parameter 'document_id' when calling
|
387
|
+
fail "Missing the required parameter 'document_id' when calling delete_documents_document_id" if document_id.nil?
|
388
388
|
|
389
389
|
# resource path
|
390
390
|
path = "/api/v1/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
@@ -419,7 +419,7 @@ module PureCloud
|
|
419
419
|
:body => post_body,
|
420
420
|
:auth_names => auth_names)
|
421
421
|
if @api_client.config.debugging
|
422
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
422
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
423
423
|
end
|
424
424
|
return data, status_code, headers
|
425
425
|
end
|
@@ -435,8 +435,8 @@ module PureCloud
|
|
435
435
|
# @option opts [String] :sort_by Sort by
|
436
436
|
# @option opts [String] :sort_order Sort order
|
437
437
|
# @return [DocumentAuditEntityListing]
|
438
|
-
def
|
439
|
-
data, status_code, headers =
|
438
|
+
def get_documents_document_id_audits(document_id, opts = {})
|
439
|
+
data, status_code, headers = get_documents_document_id_audits_with_http_info(document_id, opts)
|
440
440
|
return data
|
441
441
|
end
|
442
442
|
|
@@ -451,13 +451,13 @@ module PureCloud
|
|
451
451
|
# @option opts [String] :sort_by Sort by
|
452
452
|
# @option opts [String] :sort_order Sort order
|
453
453
|
# @return [Array<(DocumentAuditEntityListing, Fixnum, Hash)>] DocumentAuditEntityListing data, response status code and response headers
|
454
|
-
def
|
454
|
+
def get_documents_document_id_audits_with_http_info(document_id, opts = {})
|
455
455
|
if @api_client.config.debugging
|
456
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
456
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_documents_document_id_audits ..."
|
457
457
|
end
|
458
458
|
|
459
459
|
# verify the required parameter 'document_id' is set
|
460
|
-
fail "Missing the required parameter 'document_id' when calling
|
460
|
+
fail "Missing the required parameter 'document_id' when calling get_documents_document_id_audits" if document_id.nil?
|
461
461
|
|
462
462
|
# resource path
|
463
463
|
path = "/api/v1/contentmanagement/documents/{documentId}/audits".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
@@ -498,7 +498,7 @@ module PureCloud
|
|
498
498
|
:auth_names => auth_names,
|
499
499
|
:return_type => 'DocumentAuditEntityListing')
|
500
500
|
if @api_client.config.debugging
|
501
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
501
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_documents_document_id_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
502
502
|
end
|
503
503
|
return data, status_code, headers
|
504
504
|
end
|
@@ -510,8 +510,8 @@ module PureCloud
|
|
510
510
|
# @option opts [String] :disposition Request how the content will be downloaded: attached as a file or inline. Default is attachment.
|
511
511
|
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
|
512
512
|
# @return [nil]
|
513
|
-
def
|
514
|
-
|
513
|
+
def get_documents_document_id_content(document_id, opts = {})
|
514
|
+
get_documents_document_id_content_with_http_info(document_id, opts)
|
515
515
|
return nil
|
516
516
|
end
|
517
517
|
|
@@ -522,13 +522,13 @@ module PureCloud
|
|
522
522
|
# @option opts [String] :disposition Request how the content will be downloaded: attached as a file or inline. Default is attachment.
|
523
523
|
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
|
524
524
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
525
|
-
def
|
525
|
+
def get_documents_document_id_content_with_http_info(document_id, opts = {})
|
526
526
|
if @api_client.config.debugging
|
527
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
527
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_documents_document_id_content ..."
|
528
528
|
end
|
529
529
|
|
530
530
|
# verify the required parameter 'document_id' is set
|
531
|
-
fail "Missing the required parameter 'document_id' when calling
|
531
|
+
fail "Missing the required parameter 'document_id' when calling get_documents_document_id_content" if document_id.nil?
|
532
532
|
|
533
533
|
if opts[:'disposition'] && !['attachment', 'inline'].include?(opts[:'disposition'])
|
534
534
|
fail 'invalid value for "disposition", must be one of attachment, inline'
|
@@ -568,7 +568,7 @@ module PureCloud
|
|
568
568
|
:body => post_body,
|
569
569
|
:auth_names => auth_names)
|
570
570
|
if @api_client.config.debugging
|
571
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
571
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_documents_document_id_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
572
572
|
end
|
573
573
|
return data, status_code, headers
|
574
574
|
end
|
@@ -580,8 +580,8 @@ module PureCloud
|
|
580
580
|
# @option opts [ReplaceRequest] :body Replace Request
|
581
581
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
582
582
|
# @return [ReplaceResponse]
|
583
|
-
def
|
584
|
-
data, status_code, headers =
|
583
|
+
def post_documents_document_id_content(document_id, opts = {})
|
584
|
+
data, status_code, headers = post_documents_document_id_content_with_http_info(document_id, opts)
|
585
585
|
return data
|
586
586
|
end
|
587
587
|
|
@@ -592,13 +592,13 @@ module PureCloud
|
|
592
592
|
# @option opts [ReplaceRequest] :body Replace Request
|
593
593
|
# @option opts [BOOLEAN] :override Override any lock on the document
|
594
594
|
# @return [Array<(ReplaceResponse, Fixnum, Hash)>] ReplaceResponse data, response status code and response headers
|
595
|
-
def
|
595
|
+
def post_documents_document_id_content_with_http_info(document_id, opts = {})
|
596
596
|
if @api_client.config.debugging
|
597
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
597
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_documents_document_id_content ..."
|
598
598
|
end
|
599
599
|
|
600
600
|
# verify the required parameter 'document_id' is set
|
601
|
-
fail "Missing the required parameter 'document_id' when calling
|
601
|
+
fail "Missing the required parameter 'document_id' when calling post_documents_document_id_content" if document_id.nil?
|
602
602
|
|
603
603
|
# resource path
|
604
604
|
path = "/api/v1/contentmanagement/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
@@ -634,7 +634,7 @@ module PureCloud
|
|
634
634
|
:auth_names => auth_names,
|
635
635
|
:return_type => 'ReplaceResponse')
|
636
636
|
if @api_client.config.debugging
|
637
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
637
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_documents_document_id_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
638
638
|
end
|
639
639
|
return data, status_code, headers
|
640
640
|
end
|
@@ -726,8 +726,8 @@ module PureCloud
|
|
726
726
|
# @param [Hash] opts the optional parameters
|
727
727
|
# @option opts [String] :expand Expand some document fields
|
728
728
|
# @return [QueryResults]
|
729
|
-
def
|
730
|
-
data, status_code, headers =
|
729
|
+
def post_query(body, opts = {})
|
730
|
+
data, status_code, headers = post_query_with_http_info(body, opts)
|
731
731
|
return data
|
732
732
|
end
|
733
733
|
|
@@ -737,13 +737,13 @@ module PureCloud
|
|
737
737
|
# @param [Hash] opts the optional parameters
|
738
738
|
# @option opts [String] :expand Expand some document fields
|
739
739
|
# @return [Array<(QueryResults, Fixnum, Hash)>] QueryResults data, response status code and response headers
|
740
|
-
def
|
740
|
+
def post_query_with_http_info(body, opts = {})
|
741
741
|
if @api_client.config.debugging
|
742
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
742
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_query ..."
|
743
743
|
end
|
744
744
|
|
745
745
|
# verify the required parameter 'body' is set
|
746
|
-
fail "Missing the required parameter 'body' when calling
|
746
|
+
fail "Missing the required parameter 'body' when calling post_query" if body.nil?
|
747
747
|
|
748
748
|
if opts[:'expand'] && !['acl', 'workspace'].include?(opts[:'expand'])
|
749
749
|
fail 'invalid value for "expand", must be one of acl, workspace'
|
@@ -783,7 +783,7 @@ module PureCloud
|
|
783
783
|
:auth_names => auth_names,
|
784
784
|
:return_type => 'QueryResults')
|
785
785
|
if @api_client.config.debugging
|
786
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
786
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
787
787
|
end
|
788
788
|
return data, status_code, headers
|
789
789
|
end
|
@@ -849,8 +849,8 @@ module PureCloud
|
|
849
849
|
# @param security_profile_id Security Profile Id
|
850
850
|
# @param [Hash] opts the optional parameters
|
851
851
|
# @return [SecurityProfile]
|
852
|
-
def
|
853
|
-
data, status_code, headers =
|
852
|
+
def get_securityprofiles_securityprofile_id(security_profile_id, opts = {})
|
853
|
+
data, status_code, headers = get_securityprofiles_securityprofile_id_with_http_info(security_profile_id, opts)
|
854
854
|
return data
|
855
855
|
end
|
856
856
|
|
@@ -859,13 +859,13 @@ module PureCloud
|
|
859
859
|
# @param security_profile_id Security Profile Id
|
860
860
|
# @param [Hash] opts the optional parameters
|
861
861
|
# @return [Array<(SecurityProfile, Fixnum, Hash)>] SecurityProfile data, response status code and response headers
|
862
|
-
def
|
862
|
+
def get_securityprofiles_securityprofile_id_with_http_info(security_profile_id, opts = {})
|
863
863
|
if @api_client.config.debugging
|
864
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
864
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_securityprofiles_securityprofile_id ..."
|
865
865
|
end
|
866
866
|
|
867
867
|
# verify the required parameter 'security_profile_id' is set
|
868
|
-
fail "Missing the required parameter 'security_profile_id' when calling
|
868
|
+
fail "Missing the required parameter 'security_profile_id' when calling get_securityprofiles_securityprofile_id" if security_profile_id.nil?
|
869
869
|
|
870
870
|
# resource path
|
871
871
|
path = "/api/v1/contentmanagement/securityprofiles/{securityProfileId}".sub('{format}','json').sub('{' + 'securityProfileId' + '}', security_profile_id.to_s)
|
@@ -900,7 +900,7 @@ module PureCloud
|
|
900
900
|
:auth_names => auth_names,
|
901
901
|
:return_type => 'SecurityProfile')
|
902
902
|
if @api_client.config.debugging
|
903
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
903
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_securityprofiles_securityprofile_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
904
904
|
end
|
905
905
|
return data, status_code, headers
|
906
906
|
end
|
@@ -914,8 +914,8 @@ module PureCloud
|
|
914
914
|
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
|
915
915
|
# @option opts [String] :expand Expand some document fields
|
916
916
|
# @return [nil]
|
917
|
-
def
|
918
|
-
|
917
|
+
def get_shared_shared_id(shared_id, opts = {})
|
918
|
+
get_shared_shared_id_with_http_info(shared_id, opts)
|
919
919
|
return nil
|
920
920
|
end
|
921
921
|
|
@@ -928,13 +928,13 @@ module PureCloud
|
|
928
928
|
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
|
929
929
|
# @option opts [String] :expand Expand some document fields
|
930
930
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
931
|
-
def
|
931
|
+
def get_shared_shared_id_with_http_info(shared_id, opts = {})
|
932
932
|
if @api_client.config.debugging
|
933
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
933
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_shared_shared_id ..."
|
934
934
|
end
|
935
935
|
|
936
936
|
# verify the required parameter 'shared_id' is set
|
937
|
-
fail "Missing the required parameter 'shared_id' when calling
|
937
|
+
fail "Missing the required parameter 'shared_id' when calling get_shared_shared_id" if shared_id.nil?
|
938
938
|
|
939
939
|
if opts[:'disposition'] && !['attachment', 'inline', 'none'].include?(opts[:'disposition'])
|
940
940
|
fail 'invalid value for "disposition", must be one of attachment, inline, none'
|
@@ -980,7 +980,7 @@ module PureCloud
|
|
980
980
|
:body => post_body,
|
981
981
|
:auth_names => auth_names)
|
982
982
|
if @api_client.config.debugging
|
983
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
983
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_shared_shared_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
984
984
|
end
|
985
985
|
return data, status_code, headers
|
986
986
|
end
|
@@ -1062,8 +1062,8 @@ module PureCloud
|
|
1062
1062
|
# @param [Hash] opts the optional parameters
|
1063
1063
|
# @option opts [CreateShareRequest] :body CreateShareRequest - entity id and type and a single member or list of members are required
|
1064
1064
|
# @return [CreateShareResponse]
|
1065
|
-
def
|
1066
|
-
data, status_code, headers =
|
1065
|
+
def post_shares(opts = {})
|
1066
|
+
data, status_code, headers = post_shares_with_http_info(opts)
|
1067
1067
|
return data
|
1068
1068
|
end
|
1069
1069
|
|
@@ -1072,9 +1072,9 @@ module PureCloud
|
|
1072
1072
|
# @param [Hash] opts the optional parameters
|
1073
1073
|
# @option opts [CreateShareRequest] :body CreateShareRequest - entity id and type and a single member or list of members are required
|
1074
1074
|
# @return [Array<(CreateShareResponse, Fixnum, Hash)>] CreateShareResponse data, response status code and response headers
|
1075
|
-
def
|
1075
|
+
def post_shares_with_http_info(opts = {})
|
1076
1076
|
if @api_client.config.debugging
|
1077
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1077
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_shares ..."
|
1078
1078
|
end
|
1079
1079
|
|
1080
1080
|
# resource path
|
@@ -1110,7 +1110,7 @@ module PureCloud
|
|
1110
1110
|
:auth_names => auth_names,
|
1111
1111
|
:return_type => 'CreateShareResponse')
|
1112
1112
|
if @api_client.config.debugging
|
1113
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1113
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_shares\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1114
1114
|
end
|
1115
1115
|
return data, status_code, headers
|
1116
1116
|
end
|
@@ -1121,8 +1121,8 @@ module PureCloud
|
|
1121
1121
|
# @param [Hash] opts the optional parameters
|
1122
1122
|
# @option opts [String] :expand Expand share fields
|
1123
1123
|
# @return [Share]
|
1124
|
-
def
|
1125
|
-
data, status_code, headers =
|
1124
|
+
def get_shares_share_id(share_id, opts = {})
|
1125
|
+
data, status_code, headers = get_shares_share_id_with_http_info(share_id, opts)
|
1126
1126
|
return data
|
1127
1127
|
end
|
1128
1128
|
|
@@ -1132,13 +1132,13 @@ module PureCloud
|
|
1132
1132
|
# @param [Hash] opts the optional parameters
|
1133
1133
|
# @option opts [String] :expand Expand share fields
|
1134
1134
|
# @return [Array<(Share, Fixnum, Hash)>] Share data, response status code and response headers
|
1135
|
-
def
|
1135
|
+
def get_shares_share_id_with_http_info(share_id, opts = {})
|
1136
1136
|
if @api_client.config.debugging
|
1137
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1137
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_shares_share_id ..."
|
1138
1138
|
end
|
1139
1139
|
|
1140
1140
|
# verify the required parameter 'share_id' is set
|
1141
|
-
fail "Missing the required parameter 'share_id' when calling
|
1141
|
+
fail "Missing the required parameter 'share_id' when calling get_shares_share_id" if share_id.nil?
|
1142
1142
|
|
1143
1143
|
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
|
1144
1144
|
fail 'invalid value for "expand", must be one of member'
|
@@ -1178,7 +1178,7 @@ module PureCloud
|
|
1178
1178
|
:auth_names => auth_names,
|
1179
1179
|
:return_type => 'Share')
|
1180
1180
|
if @api_client.config.debugging
|
1181
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1181
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_shares_share_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1182
1182
|
end
|
1183
1183
|
return data, status_code, headers
|
1184
1184
|
end
|
@@ -1188,8 +1188,8 @@ module PureCloud
|
|
1188
1188
|
# @param share_id Share ID
|
1189
1189
|
# @param [Hash] opts the optional parameters
|
1190
1190
|
# @return [nil]
|
1191
|
-
def
|
1192
|
-
|
1191
|
+
def delete_shares_share_id(share_id, opts = {})
|
1192
|
+
delete_shares_share_id_with_http_info(share_id, opts)
|
1193
1193
|
return nil
|
1194
1194
|
end
|
1195
1195
|
|
@@ -1198,13 +1198,13 @@ module PureCloud
|
|
1198
1198
|
# @param share_id Share ID
|
1199
1199
|
# @param [Hash] opts the optional parameters
|
1200
1200
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1201
|
-
def
|
1201
|
+
def delete_shares_share_id_with_http_info(share_id, opts = {})
|
1202
1202
|
if @api_client.config.debugging
|
1203
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1203
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_shares_share_id ..."
|
1204
1204
|
end
|
1205
1205
|
|
1206
1206
|
# verify the required parameter 'share_id' is set
|
1207
|
-
fail "Missing the required parameter 'share_id' when calling
|
1207
|
+
fail "Missing the required parameter 'share_id' when calling delete_shares_share_id" if share_id.nil?
|
1208
1208
|
|
1209
1209
|
# resource path
|
1210
1210
|
path = "/api/v1/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s)
|
@@ -1238,7 +1238,7 @@ module PureCloud
|
|
1238
1238
|
:body => post_body,
|
1239
1239
|
:auth_names => auth_names)
|
1240
1240
|
if @api_client.config.debugging
|
1241
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1241
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_shares_share_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1242
1242
|
end
|
1243
1243
|
return data, status_code, headers
|
1244
1244
|
end
|
@@ -1310,8 +1310,8 @@ module PureCloud
|
|
1310
1310
|
# @param status_id Status ID
|
1311
1311
|
# @param [Hash] opts the optional parameters
|
1312
1312
|
# @return [CommandStatus]
|
1313
|
-
def
|
1314
|
-
data, status_code, headers =
|
1313
|
+
def get_status_status_id(status_id, opts = {})
|
1314
|
+
data, status_code, headers = get_status_status_id_with_http_info(status_id, opts)
|
1315
1315
|
return data
|
1316
1316
|
end
|
1317
1317
|
|
@@ -1320,13 +1320,13 @@ module PureCloud
|
|
1320
1320
|
# @param status_id Status ID
|
1321
1321
|
# @param [Hash] opts the optional parameters
|
1322
1322
|
# @return [Array<(CommandStatus, Fixnum, Hash)>] CommandStatus data, response status code and response headers
|
1323
|
-
def
|
1323
|
+
def get_status_status_id_with_http_info(status_id, opts = {})
|
1324
1324
|
if @api_client.config.debugging
|
1325
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1325
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_status_status_id ..."
|
1326
1326
|
end
|
1327
1327
|
|
1328
1328
|
# verify the required parameter 'status_id' is set
|
1329
|
-
fail "Missing the required parameter 'status_id' when calling
|
1329
|
+
fail "Missing the required parameter 'status_id' when calling get_status_status_id" if status_id.nil?
|
1330
1330
|
|
1331
1331
|
# resource path
|
1332
1332
|
path = "/api/v1/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
|
@@ -1361,7 +1361,7 @@ module PureCloud
|
|
1361
1361
|
:auth_names => auth_names,
|
1362
1362
|
:return_type => 'CommandStatus')
|
1363
1363
|
if @api_client.config.debugging
|
1364
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1364
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_status_status_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1365
1365
|
end
|
1366
1366
|
return data, status_code, headers
|
1367
1367
|
end
|
@@ -1371,8 +1371,8 @@ module PureCloud
|
|
1371
1371
|
# @param status_id Status ID
|
1372
1372
|
# @param [Hash] opts the optional parameters
|
1373
1373
|
# @return [nil]
|
1374
|
-
def
|
1375
|
-
|
1374
|
+
def delete_status_status_id(status_id, opts = {})
|
1375
|
+
delete_status_status_id_with_http_info(status_id, opts)
|
1376
1376
|
return nil
|
1377
1377
|
end
|
1378
1378
|
|
@@ -1381,13 +1381,13 @@ module PureCloud
|
|
1381
1381
|
# @param status_id Status ID
|
1382
1382
|
# @param [Hash] opts the optional parameters
|
1383
1383
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1384
|
-
def
|
1384
|
+
def delete_status_status_id_with_http_info(status_id, opts = {})
|
1385
1385
|
if @api_client.config.debugging
|
1386
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1386
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_status_status_id ..."
|
1387
1387
|
end
|
1388
1388
|
|
1389
1389
|
# verify the required parameter 'status_id' is set
|
1390
|
-
fail "Missing the required parameter 'status_id' when calling
|
1390
|
+
fail "Missing the required parameter 'status_id' when calling delete_status_status_id" if status_id.nil?
|
1391
1391
|
|
1392
1392
|
# resource path
|
1393
1393
|
path = "/api/v1/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
|
@@ -1421,7 +1421,7 @@ module PureCloud
|
|
1421
1421
|
:body => post_body,
|
1422
1422
|
:auth_names => auth_names)
|
1423
1423
|
if @api_client.config.debugging
|
1424
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1424
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_status_status_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1425
1425
|
end
|
1426
1426
|
return data, status_code, headers
|
1427
1427
|
end
|
@@ -1507,8 +1507,8 @@ module PureCloud
|
|
1507
1507
|
# @param [Hash] opts the optional parameters
|
1508
1508
|
# @option opts [WorkspaceCreate] :body Workspace
|
1509
1509
|
# @return [Workspace]
|
1510
|
-
def
|
1511
|
-
data, status_code, headers =
|
1510
|
+
def post_workspaces(opts = {})
|
1511
|
+
data, status_code, headers = post_workspaces_with_http_info(opts)
|
1512
1512
|
return data
|
1513
1513
|
end
|
1514
1514
|
|
@@ -1517,9 +1517,9 @@ module PureCloud
|
|
1517
1517
|
# @param [Hash] opts the optional parameters
|
1518
1518
|
# @option opts [WorkspaceCreate] :body Workspace
|
1519
1519
|
# @return [Array<(Workspace, Fixnum, Hash)>] Workspace data, response status code and response headers
|
1520
|
-
def
|
1520
|
+
def post_workspaces_with_http_info(opts = {})
|
1521
1521
|
if @api_client.config.debugging
|
1522
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1522
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_workspaces ..."
|
1523
1523
|
end
|
1524
1524
|
|
1525
1525
|
# resource path
|
@@ -1555,7 +1555,7 @@ module PureCloud
|
|
1555
1555
|
:auth_names => auth_names,
|
1556
1556
|
:return_type => 'Workspace')
|
1557
1557
|
if @api_client.config.debugging
|
1558
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1558
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_workspaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1559
1559
|
end
|
1560
1560
|
return data, status_code, headers
|
1561
1561
|
end
|
@@ -1566,8 +1566,8 @@ module PureCloud
|
|
1566
1566
|
# @param [Hash] opts the optional parameters
|
1567
1567
|
# @option opts [String] :expand Expand some workspace fields
|
1568
1568
|
# @return [Workspace]
|
1569
|
-
def
|
1570
|
-
data, status_code, headers =
|
1569
|
+
def get_workspaces_workspace_id(workspace_id, opts = {})
|
1570
|
+
data, status_code, headers = get_workspaces_workspace_id_with_http_info(workspace_id, opts)
|
1571
1571
|
return data
|
1572
1572
|
end
|
1573
1573
|
|
@@ -1577,13 +1577,13 @@ module PureCloud
|
|
1577
1577
|
# @param [Hash] opts the optional parameters
|
1578
1578
|
# @option opts [String] :expand Expand some workspace fields
|
1579
1579
|
# @return [Array<(Workspace, Fixnum, Hash)>] Workspace data, response status code and response headers
|
1580
|
-
def
|
1580
|
+
def get_workspaces_workspace_id_with_http_info(workspace_id, opts = {})
|
1581
1581
|
if @api_client.config.debugging
|
1582
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1582
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_workspaces_workspace_id ..."
|
1583
1583
|
end
|
1584
1584
|
|
1585
1585
|
# verify the required parameter 'workspace_id' is set
|
1586
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1586
|
+
fail "Missing the required parameter 'workspace_id' when calling get_workspaces_workspace_id" if workspace_id.nil?
|
1587
1587
|
|
1588
1588
|
if opts[:'expand'] && !['summary', 'acl'].include?(opts[:'expand'])
|
1589
1589
|
fail 'invalid value for "expand", must be one of summary, acl'
|
@@ -1623,7 +1623,7 @@ module PureCloud
|
|
1623
1623
|
:auth_names => auth_names,
|
1624
1624
|
:return_type => 'Workspace')
|
1625
1625
|
if @api_client.config.debugging
|
1626
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1626
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_workspaces_workspace_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1627
1627
|
end
|
1628
1628
|
return data, status_code, headers
|
1629
1629
|
end
|
@@ -1634,8 +1634,8 @@ module PureCloud
|
|
1634
1634
|
# @param [Hash] opts the optional parameters
|
1635
1635
|
# @option opts [Workspace] :body Workspace
|
1636
1636
|
# @return [Workspace]
|
1637
|
-
def
|
1638
|
-
data, status_code, headers =
|
1637
|
+
def put_workspaces_workspace_id(workspace_id, opts = {})
|
1638
|
+
data, status_code, headers = put_workspaces_workspace_id_with_http_info(workspace_id, opts)
|
1639
1639
|
return data
|
1640
1640
|
end
|
1641
1641
|
|
@@ -1645,13 +1645,13 @@ module PureCloud
|
|
1645
1645
|
# @param [Hash] opts the optional parameters
|
1646
1646
|
# @option opts [Workspace] :body Workspace
|
1647
1647
|
# @return [Array<(Workspace, Fixnum, Hash)>] Workspace data, response status code and response headers
|
1648
|
-
def
|
1648
|
+
def put_workspaces_workspace_id_with_http_info(workspace_id, opts = {})
|
1649
1649
|
if @api_client.config.debugging
|
1650
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1650
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#put_workspaces_workspace_id ..."
|
1651
1651
|
end
|
1652
1652
|
|
1653
1653
|
# verify the required parameter 'workspace_id' is set
|
1654
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1654
|
+
fail "Missing the required parameter 'workspace_id' when calling put_workspaces_workspace_id" if workspace_id.nil?
|
1655
1655
|
|
1656
1656
|
# resource path
|
1657
1657
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
|
@@ -1686,7 +1686,7 @@ module PureCloud
|
|
1686
1686
|
:auth_names => auth_names,
|
1687
1687
|
:return_type => 'Workspace')
|
1688
1688
|
if @api_client.config.debugging
|
1689
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1689
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#put_workspaces_workspace_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1690
1690
|
end
|
1691
1691
|
return data, status_code, headers
|
1692
1692
|
end
|
@@ -1697,8 +1697,8 @@ module PureCloud
|
|
1697
1697
|
# @param [Hash] opts the optional parameters
|
1698
1698
|
# @option opts [String] :move_children_to_workspace_id New location for objects in deleted workspace.
|
1699
1699
|
# @return [nil]
|
1700
|
-
def
|
1701
|
-
|
1700
|
+
def delete_workspaces_workspace_id(workspace_id, opts = {})
|
1701
|
+
delete_workspaces_workspace_id_with_http_info(workspace_id, opts)
|
1702
1702
|
return nil
|
1703
1703
|
end
|
1704
1704
|
|
@@ -1708,13 +1708,13 @@ module PureCloud
|
|
1708
1708
|
# @param [Hash] opts the optional parameters
|
1709
1709
|
# @option opts [String] :move_children_to_workspace_id New location for objects in deleted workspace.
|
1710
1710
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1711
|
-
def
|
1711
|
+
def delete_workspaces_workspace_id_with_http_info(workspace_id, opts = {})
|
1712
1712
|
if @api_client.config.debugging
|
1713
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1713
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_workspaces_workspace_id ..."
|
1714
1714
|
end
|
1715
1715
|
|
1716
1716
|
# verify the required parameter 'workspace_id' is set
|
1717
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1717
|
+
fail "Missing the required parameter 'workspace_id' when calling delete_workspaces_workspace_id" if workspace_id.nil?
|
1718
1718
|
|
1719
1719
|
# resource path
|
1720
1720
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
|
@@ -1749,7 +1749,7 @@ module PureCloud
|
|
1749
1749
|
:body => post_body,
|
1750
1750
|
:auth_names => auth_names)
|
1751
1751
|
if @api_client.config.debugging
|
1752
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1752
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_workspaces_workspace_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1753
1753
|
end
|
1754
1754
|
return data, status_code, headers
|
1755
1755
|
end
|
@@ -1762,8 +1762,8 @@ module PureCloud
|
|
1762
1762
|
# @option opts [Integer] :page_number Page number
|
1763
1763
|
# @option opts [String] :expand Expand workspace member fields
|
1764
1764
|
# @return [WorkspaceMemberEntityListing]
|
1765
|
-
def
|
1766
|
-
data, status_code, headers =
|
1765
|
+
def get_workspaces_workspace_id_members(workspace_id, opts = {})
|
1766
|
+
data, status_code, headers = get_workspaces_workspace_id_members_with_http_info(workspace_id, opts)
|
1767
1767
|
return data
|
1768
1768
|
end
|
1769
1769
|
|
@@ -1775,13 +1775,13 @@ module PureCloud
|
|
1775
1775
|
# @option opts [Integer] :page_number Page number
|
1776
1776
|
# @option opts [String] :expand Expand workspace member fields
|
1777
1777
|
# @return [Array<(WorkspaceMemberEntityListing, Fixnum, Hash)>] WorkspaceMemberEntityListing data, response status code and response headers
|
1778
|
-
def
|
1778
|
+
def get_workspaces_workspace_id_members_with_http_info(workspace_id, opts = {})
|
1779
1779
|
if @api_client.config.debugging
|
1780
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1780
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_workspaces_workspace_id_members ..."
|
1781
1781
|
end
|
1782
1782
|
|
1783
1783
|
# verify the required parameter 'workspace_id' is set
|
1784
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1784
|
+
fail "Missing the required parameter 'workspace_id' when calling get_workspaces_workspace_id_members" if workspace_id.nil?
|
1785
1785
|
|
1786
1786
|
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
|
1787
1787
|
fail 'invalid value for "expand", must be one of member'
|
@@ -1823,7 +1823,7 @@ module PureCloud
|
|
1823
1823
|
:auth_names => auth_names,
|
1824
1824
|
:return_type => 'WorkspaceMemberEntityListing')
|
1825
1825
|
if @api_client.config.debugging
|
1826
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1826
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_workspaces_workspace_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1827
1827
|
end
|
1828
1828
|
return data, status_code, headers
|
1829
1829
|
end
|
@@ -1835,8 +1835,8 @@ module PureCloud
|
|
1835
1835
|
# @param [Hash] opts the optional parameters
|
1836
1836
|
# @option opts [String] :expand Expand workspace member fields
|
1837
1837
|
# @return [WorkspaceMember]
|
1838
|
-
def
|
1839
|
-
data, status_code, headers =
|
1838
|
+
def get_workspaces_workspace_id_members_member_id(workspace_id, member_id, opts = {})
|
1839
|
+
data, status_code, headers = get_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts)
|
1840
1840
|
return data
|
1841
1841
|
end
|
1842
1842
|
|
@@ -1847,16 +1847,16 @@ module PureCloud
|
|
1847
1847
|
# @param [Hash] opts the optional parameters
|
1848
1848
|
# @option opts [String] :expand Expand workspace member fields
|
1849
1849
|
# @return [Array<(WorkspaceMember, Fixnum, Hash)>] WorkspaceMember data, response status code and response headers
|
1850
|
-
def
|
1850
|
+
def get_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts = {})
|
1851
1851
|
if @api_client.config.debugging
|
1852
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1852
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_workspaces_workspace_id_members_member_id ..."
|
1853
1853
|
end
|
1854
1854
|
|
1855
1855
|
# verify the required parameter 'workspace_id' is set
|
1856
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1856
|
+
fail "Missing the required parameter 'workspace_id' when calling get_workspaces_workspace_id_members_member_id" if workspace_id.nil?
|
1857
1857
|
|
1858
1858
|
# verify the required parameter 'member_id' is set
|
1859
|
-
fail "Missing the required parameter 'member_id' when calling
|
1859
|
+
fail "Missing the required parameter 'member_id' when calling get_workspaces_workspace_id_members_member_id" if member_id.nil?
|
1860
1860
|
|
1861
1861
|
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
|
1862
1862
|
fail 'invalid value for "expand", must be one of member'
|
@@ -1896,7 +1896,7 @@ module PureCloud
|
|
1896
1896
|
:auth_names => auth_names,
|
1897
1897
|
:return_type => 'WorkspaceMember')
|
1898
1898
|
if @api_client.config.debugging
|
1899
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1899
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_workspaces_workspace_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1900
1900
|
end
|
1901
1901
|
return data, status_code, headers
|
1902
1902
|
end
|
@@ -1908,8 +1908,8 @@ module PureCloud
|
|
1908
1908
|
# @param [Hash] opts the optional parameters
|
1909
1909
|
# @option opts [WorkspaceMember] :body Workspace
|
1910
1910
|
# @return [WorkspaceMember]
|
1911
|
-
def
|
1912
|
-
data, status_code, headers =
|
1911
|
+
def put_workspaces_workspace_id_members_member_id(workspace_id, member_id, opts = {})
|
1912
|
+
data, status_code, headers = put_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts)
|
1913
1913
|
return data
|
1914
1914
|
end
|
1915
1915
|
|
@@ -1920,16 +1920,16 @@ module PureCloud
|
|
1920
1920
|
# @param [Hash] opts the optional parameters
|
1921
1921
|
# @option opts [WorkspaceMember] :body Workspace
|
1922
1922
|
# @return [Array<(WorkspaceMember, Fixnum, Hash)>] WorkspaceMember data, response status code and response headers
|
1923
|
-
def
|
1923
|
+
def put_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts = {})
|
1924
1924
|
if @api_client.config.debugging
|
1925
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1925
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#put_workspaces_workspace_id_members_member_id ..."
|
1926
1926
|
end
|
1927
1927
|
|
1928
1928
|
# verify the required parameter 'workspace_id' is set
|
1929
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1929
|
+
fail "Missing the required parameter 'workspace_id' when calling put_workspaces_workspace_id_members_member_id" if workspace_id.nil?
|
1930
1930
|
|
1931
1931
|
# verify the required parameter 'member_id' is set
|
1932
|
-
fail "Missing the required parameter 'member_id' when calling
|
1932
|
+
fail "Missing the required parameter 'member_id' when calling put_workspaces_workspace_id_members_member_id" if member_id.nil?
|
1933
1933
|
|
1934
1934
|
# resource path
|
1935
1935
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
|
@@ -1964,7 +1964,7 @@ module PureCloud
|
|
1964
1964
|
:auth_names => auth_names,
|
1965
1965
|
:return_type => 'WorkspaceMember')
|
1966
1966
|
if @api_client.config.debugging
|
1967
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
1967
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#put_workspaces_workspace_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1968
1968
|
end
|
1969
1969
|
return data, status_code, headers
|
1970
1970
|
end
|
@@ -1975,8 +1975,8 @@ module PureCloud
|
|
1975
1975
|
# @param member_id Member ID
|
1976
1976
|
# @param [Hash] opts the optional parameters
|
1977
1977
|
# @return [nil]
|
1978
|
-
def
|
1979
|
-
|
1978
|
+
def delete_workspaces_workspace_id_members_member_id(workspace_id, member_id, opts = {})
|
1979
|
+
delete_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts)
|
1980
1980
|
return nil
|
1981
1981
|
end
|
1982
1982
|
|
@@ -1986,16 +1986,16 @@ module PureCloud
|
|
1986
1986
|
# @param member_id Member ID
|
1987
1987
|
# @param [Hash] opts the optional parameters
|
1988
1988
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1989
|
-
def
|
1989
|
+
def delete_workspaces_workspace_id_members_member_id_with_http_info(workspace_id, member_id, opts = {})
|
1990
1990
|
if @api_client.config.debugging
|
1991
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
1991
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_workspaces_workspace_id_members_member_id ..."
|
1992
1992
|
end
|
1993
1993
|
|
1994
1994
|
# verify the required parameter 'workspace_id' is set
|
1995
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
1995
|
+
fail "Missing the required parameter 'workspace_id' when calling delete_workspaces_workspace_id_members_member_id" if workspace_id.nil?
|
1996
1996
|
|
1997
1997
|
# verify the required parameter 'member_id' is set
|
1998
|
-
fail "Missing the required parameter 'member_id' when calling
|
1998
|
+
fail "Missing the required parameter 'member_id' when calling delete_workspaces_workspace_id_members_member_id" if member_id.nil?
|
1999
1999
|
|
2000
2000
|
# resource path
|
2001
2001
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
|
@@ -2029,7 +2029,7 @@ module PureCloud
|
|
2029
2029
|
:body => post_body,
|
2030
2030
|
:auth_names => auth_names)
|
2031
2031
|
if @api_client.config.debugging
|
2032
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2032
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_workspaces_workspace_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2033
2033
|
end
|
2034
2034
|
return data, status_code, headers
|
2035
2035
|
end
|
@@ -2043,8 +2043,8 @@ module PureCloud
|
|
2043
2043
|
# @option opts [Integer] :page_number Page number
|
2044
2044
|
# @option opts [String] :expand Expand some document fields
|
2045
2045
|
# @return [TagValueEntityListing]
|
2046
|
-
def
|
2047
|
-
data, status_code, headers =
|
2046
|
+
def get_workspaces_workspace_id_tagvalues(workspace_id, opts = {})
|
2047
|
+
data, status_code, headers = get_workspaces_workspace_id_tagvalues_with_http_info(workspace_id, opts)
|
2048
2048
|
return data
|
2049
2049
|
end
|
2050
2050
|
|
@@ -2057,13 +2057,13 @@ module PureCloud
|
|
2057
2057
|
# @option opts [Integer] :page_number Page number
|
2058
2058
|
# @option opts [String] :expand Expand some document fields
|
2059
2059
|
# @return [Array<(TagValueEntityListing, Fixnum, Hash)>] TagValueEntityListing data, response status code and response headers
|
2060
|
-
def
|
2060
|
+
def get_workspaces_workspace_id_tagvalues_with_http_info(workspace_id, opts = {})
|
2061
2061
|
if @api_client.config.debugging
|
2062
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2062
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_workspaces_workspace_id_tagvalues ..."
|
2063
2063
|
end
|
2064
2064
|
|
2065
2065
|
# verify the required parameter 'workspace_id' is set
|
2066
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2066
|
+
fail "Missing the required parameter 'workspace_id' when calling get_workspaces_workspace_id_tagvalues" if workspace_id.nil?
|
2067
2067
|
|
2068
2068
|
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
|
2069
2069
|
fail 'invalid value for "expand", must be one of acl'
|
@@ -2106,7 +2106,7 @@ module PureCloud
|
|
2106
2106
|
:auth_names => auth_names,
|
2107
2107
|
:return_type => 'TagValueEntityListing')
|
2108
2108
|
if @api_client.config.debugging
|
2109
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2109
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_workspaces_workspace_id_tagvalues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2110
2110
|
end
|
2111
2111
|
return data, status_code, headers
|
2112
2112
|
end
|
@@ -2117,8 +2117,8 @@ module PureCloud
|
|
2117
2117
|
# @param [Hash] opts the optional parameters
|
2118
2118
|
# @option opts [TagValue] :body tag
|
2119
2119
|
# @return [TagValue]
|
2120
|
-
def
|
2121
|
-
data, status_code, headers =
|
2120
|
+
def post_workspaces_workspace_id_tagvalues(workspace_id, opts = {})
|
2121
|
+
data, status_code, headers = post_workspaces_workspace_id_tagvalues_with_http_info(workspace_id, opts)
|
2122
2122
|
return data
|
2123
2123
|
end
|
2124
2124
|
|
@@ -2128,13 +2128,13 @@ module PureCloud
|
|
2128
2128
|
# @param [Hash] opts the optional parameters
|
2129
2129
|
# @option opts [TagValue] :body tag
|
2130
2130
|
# @return [Array<(TagValue, Fixnum, Hash)>] TagValue data, response status code and response headers
|
2131
|
-
def
|
2131
|
+
def post_workspaces_workspace_id_tagvalues_with_http_info(workspace_id, opts = {})
|
2132
2132
|
if @api_client.config.debugging
|
2133
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2133
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_workspaces_workspace_id_tagvalues ..."
|
2134
2134
|
end
|
2135
2135
|
|
2136
2136
|
# verify the required parameter 'workspace_id' is set
|
2137
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2137
|
+
fail "Missing the required parameter 'workspace_id' when calling post_workspaces_workspace_id_tagvalues" if workspace_id.nil?
|
2138
2138
|
|
2139
2139
|
# resource path
|
2140
2140
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
|
@@ -2169,7 +2169,7 @@ module PureCloud
|
|
2169
2169
|
:auth_names => auth_names,
|
2170
2170
|
:return_type => 'TagValue')
|
2171
2171
|
if @api_client.config.debugging
|
2172
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2172
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_workspaces_workspace_id_tagvalues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2173
2173
|
end
|
2174
2174
|
return data, status_code, headers
|
2175
2175
|
end
|
@@ -2181,8 +2181,8 @@ module PureCloud
|
|
2181
2181
|
# @option opts [TagQueryRequest] :body query
|
2182
2182
|
# @option opts [String] :expand Expand some document fields
|
2183
2183
|
# @return [TagValueEntityListing]
|
2184
|
-
def
|
2185
|
-
data, status_code, headers =
|
2184
|
+
def post_workspaces_workspace_id_tagvalues_query(workspace_id, opts = {})
|
2185
|
+
data, status_code, headers = post_workspaces_workspace_id_tagvalues_query_with_http_info(workspace_id, opts)
|
2186
2186
|
return data
|
2187
2187
|
end
|
2188
2188
|
|
@@ -2193,13 +2193,13 @@ module PureCloud
|
|
2193
2193
|
# @option opts [TagQueryRequest] :body query
|
2194
2194
|
# @option opts [String] :expand Expand some document fields
|
2195
2195
|
# @return [Array<(TagValueEntityListing, Fixnum, Hash)>] TagValueEntityListing data, response status code and response headers
|
2196
|
-
def
|
2196
|
+
def post_workspaces_workspace_id_tagvalues_query_with_http_info(workspace_id, opts = {})
|
2197
2197
|
if @api_client.config.debugging
|
2198
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2198
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_workspaces_workspace_id_tagvalues_query ..."
|
2199
2199
|
end
|
2200
2200
|
|
2201
2201
|
# verify the required parameter 'workspace_id' is set
|
2202
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2202
|
+
fail "Missing the required parameter 'workspace_id' when calling post_workspaces_workspace_id_tagvalues_query" if workspace_id.nil?
|
2203
2203
|
|
2204
2204
|
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
|
2205
2205
|
fail 'invalid value for "expand", must be one of acl'
|
@@ -2239,7 +2239,7 @@ module PureCloud
|
|
2239
2239
|
:auth_names => auth_names,
|
2240
2240
|
:return_type => 'TagValueEntityListing')
|
2241
2241
|
if @api_client.config.debugging
|
2242
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2242
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#post_workspaces_workspace_id_tagvalues_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2243
2243
|
end
|
2244
2244
|
return data, status_code, headers
|
2245
2245
|
end
|
@@ -2251,8 +2251,8 @@ module PureCloud
|
|
2251
2251
|
# @param [Hash] opts the optional parameters
|
2252
2252
|
# @option opts [String] :expand Expand some document fields
|
2253
2253
|
# @return [TagValue]
|
2254
|
-
def
|
2255
|
-
data, status_code, headers =
|
2254
|
+
def get_workspaces_workspace_id_tagvalues_tag_id(workspace_id, tag_id, opts = {})
|
2255
|
+
data, status_code, headers = get_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts)
|
2256
2256
|
return data
|
2257
2257
|
end
|
2258
2258
|
|
@@ -2263,16 +2263,16 @@ module PureCloud
|
|
2263
2263
|
# @param [Hash] opts the optional parameters
|
2264
2264
|
# @option opts [String] :expand Expand some document fields
|
2265
2265
|
# @return [Array<(TagValue, Fixnum, Hash)>] TagValue data, response status code and response headers
|
2266
|
-
def
|
2266
|
+
def get_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts = {})
|
2267
2267
|
if @api_client.config.debugging
|
2268
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2268
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_workspaces_workspace_id_tagvalues_tag_id ..."
|
2269
2269
|
end
|
2270
2270
|
|
2271
2271
|
# verify the required parameter 'workspace_id' is set
|
2272
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2272
|
+
fail "Missing the required parameter 'workspace_id' when calling get_workspaces_workspace_id_tagvalues_tag_id" if workspace_id.nil?
|
2273
2273
|
|
2274
2274
|
# verify the required parameter 'tag_id' is set
|
2275
|
-
fail "Missing the required parameter 'tag_id' when calling
|
2275
|
+
fail "Missing the required parameter 'tag_id' when calling get_workspaces_workspace_id_tagvalues_tag_id" if tag_id.nil?
|
2276
2276
|
|
2277
2277
|
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
|
2278
2278
|
fail 'invalid value for "expand", must be one of acl'
|
@@ -2312,7 +2312,7 @@ module PureCloud
|
|
2312
2312
|
:auth_names => auth_names,
|
2313
2313
|
:return_type => 'TagValue')
|
2314
2314
|
if @api_client.config.debugging
|
2315
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2315
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#get_workspaces_workspace_id_tagvalues_tag_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2316
2316
|
end
|
2317
2317
|
return data, status_code, headers
|
2318
2318
|
end
|
@@ -2324,8 +2324,8 @@ module PureCloud
|
|
2324
2324
|
# @param [Hash] opts the optional parameters
|
2325
2325
|
# @option opts [TagValue] :body Workspace
|
2326
2326
|
# @return [TagValue]
|
2327
|
-
def
|
2328
|
-
data, status_code, headers =
|
2327
|
+
def put_workspaces_workspace_id_tagvalues_tag_id(workspace_id, tag_id, opts = {})
|
2328
|
+
data, status_code, headers = put_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts)
|
2329
2329
|
return data
|
2330
2330
|
end
|
2331
2331
|
|
@@ -2336,16 +2336,16 @@ module PureCloud
|
|
2336
2336
|
# @param [Hash] opts the optional parameters
|
2337
2337
|
# @option opts [TagValue] :body Workspace
|
2338
2338
|
# @return [Array<(TagValue, Fixnum, Hash)>] TagValue data, response status code and response headers
|
2339
|
-
def
|
2339
|
+
def put_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts = {})
|
2340
2340
|
if @api_client.config.debugging
|
2341
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2341
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#put_workspaces_workspace_id_tagvalues_tag_id ..."
|
2342
2342
|
end
|
2343
2343
|
|
2344
2344
|
# verify the required parameter 'workspace_id' is set
|
2345
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2345
|
+
fail "Missing the required parameter 'workspace_id' when calling put_workspaces_workspace_id_tagvalues_tag_id" if workspace_id.nil?
|
2346
2346
|
|
2347
2347
|
# verify the required parameter 'tag_id' is set
|
2348
|
-
fail "Missing the required parameter 'tag_id' when calling
|
2348
|
+
fail "Missing the required parameter 'tag_id' when calling put_workspaces_workspace_id_tagvalues_tag_id" if tag_id.nil?
|
2349
2349
|
|
2350
2350
|
# resource path
|
2351
2351
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s)
|
@@ -2380,7 +2380,7 @@ module PureCloud
|
|
2380
2380
|
:auth_names => auth_names,
|
2381
2381
|
:return_type => 'TagValue')
|
2382
2382
|
if @api_client.config.debugging
|
2383
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2383
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#put_workspaces_workspace_id_tagvalues_tag_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2384
2384
|
end
|
2385
2385
|
return data, status_code, headers
|
2386
2386
|
end
|
@@ -2391,8 +2391,8 @@ module PureCloud
|
|
2391
2391
|
# @param tag_id Tag ID
|
2392
2392
|
# @param [Hash] opts the optional parameters
|
2393
2393
|
# @return [nil]
|
2394
|
-
def
|
2395
|
-
|
2394
|
+
def delete_workspaces_workspace_id_tagvalues_tag_id(workspace_id, tag_id, opts = {})
|
2395
|
+
delete_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts)
|
2396
2396
|
return nil
|
2397
2397
|
end
|
2398
2398
|
|
@@ -2402,16 +2402,16 @@ module PureCloud
|
|
2402
2402
|
# @param tag_id Tag ID
|
2403
2403
|
# @param [Hash] opts the optional parameters
|
2404
2404
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2405
|
-
def
|
2405
|
+
def delete_workspaces_workspace_id_tagvalues_tag_id_with_http_info(workspace_id, tag_id, opts = {})
|
2406
2406
|
if @api_client.config.debugging
|
2407
|
-
@api_client.config.logger.debug "Calling API: ContentManagementApi#
|
2407
|
+
@api_client.config.logger.debug "Calling API: ContentManagementApi#delete_workspaces_workspace_id_tagvalues_tag_id ..."
|
2408
2408
|
end
|
2409
2409
|
|
2410
2410
|
# verify the required parameter 'workspace_id' is set
|
2411
|
-
fail "Missing the required parameter 'workspace_id' when calling
|
2411
|
+
fail "Missing the required parameter 'workspace_id' when calling delete_workspaces_workspace_id_tagvalues_tag_id" if workspace_id.nil?
|
2412
2412
|
|
2413
2413
|
# verify the required parameter 'tag_id' is set
|
2414
|
-
fail "Missing the required parameter 'tag_id' when calling
|
2414
|
+
fail "Missing the required parameter 'tag_id' when calling delete_workspaces_workspace_id_tagvalues_tag_id" if tag_id.nil?
|
2415
2415
|
|
2416
2416
|
# resource path
|
2417
2417
|
path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s)
|
@@ -2445,7 +2445,7 @@ module PureCloud
|
|
2445
2445
|
:body => post_body,
|
2446
2446
|
:auth_names => auth_names)
|
2447
2447
|
if @api_client.config.debugging
|
2448
|
-
@api_client.config.logger.debug "API called: ContentManagementApi#
|
2448
|
+
@api_client.config.logger.debug "API called: ContentManagementApi#delete_workspaces_workspace_id_tagvalues_tag_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2449
2449
|
end
|
2450
2450
|
return data, status_code, headers
|
2451
2451
|
end
|