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
|
@@ -75,8 +75,8 @@ module PureCloud
|
|
|
75
75
|
# @param document_id Document ID
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
77
|
# @return [FaxDocument]
|
|
78
|
-
def
|
|
79
|
-
data, status_code, headers =
|
|
78
|
+
def get_documents_document_id(document_id, opts = {})
|
|
79
|
+
data, status_code, headers = get_documents_document_id_with_http_info(document_id, opts)
|
|
80
80
|
return data
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -85,13 +85,13 @@ module PureCloud
|
|
|
85
85
|
# @param document_id Document ID
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @return [Array<(FaxDocument, Fixnum, Hash)>] FaxDocument data, response status code and response headers
|
|
88
|
-
def
|
|
88
|
+
def get_documents_document_id_with_http_info(document_id, opts = {})
|
|
89
89
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "Calling API: FaxApi#
|
|
90
|
+
@api_client.config.logger.debug "Calling API: FaxApi#get_documents_document_id ..."
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# verify the required parameter 'document_id' is set
|
|
94
|
-
fail "Missing the required parameter 'document_id' when calling
|
|
94
|
+
fail "Missing the required parameter 'document_id' when calling get_documents_document_id" if document_id.nil?
|
|
95
95
|
|
|
96
96
|
# resource path
|
|
97
97
|
path = "/api/v1/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
|
@@ -126,7 +126,7 @@ module PureCloud
|
|
|
126
126
|
:auth_names => auth_names,
|
|
127
127
|
:return_type => 'FaxDocument')
|
|
128
128
|
if @api_client.config.debugging
|
|
129
|
-
@api_client.config.logger.debug "API called: FaxApi#
|
|
129
|
+
@api_client.config.logger.debug "API called: FaxApi#get_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
130
130
|
end
|
|
131
131
|
return data, status_code, headers
|
|
132
132
|
end
|
|
@@ -137,8 +137,8 @@ module PureCloud
|
|
|
137
137
|
# @param [Hash] opts the optional parameters
|
|
138
138
|
# @option opts [FaxDocument] :body Document
|
|
139
139
|
# @return [FaxDocument]
|
|
140
|
-
def
|
|
141
|
-
data, status_code, headers =
|
|
140
|
+
def put_documents_document_id(document_id, opts = {})
|
|
141
|
+
data, status_code, headers = put_documents_document_id_with_http_info(document_id, opts)
|
|
142
142
|
return data
|
|
143
143
|
end
|
|
144
144
|
|
|
@@ -148,13 +148,13 @@ module PureCloud
|
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
149
|
# @option opts [FaxDocument] :body Document
|
|
150
150
|
# @return [Array<(FaxDocument, Fixnum, Hash)>] FaxDocument data, response status code and response headers
|
|
151
|
-
def
|
|
151
|
+
def put_documents_document_id_with_http_info(document_id, opts = {})
|
|
152
152
|
if @api_client.config.debugging
|
|
153
|
-
@api_client.config.logger.debug "Calling API: FaxApi#
|
|
153
|
+
@api_client.config.logger.debug "Calling API: FaxApi#put_documents_document_id ..."
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# verify the required parameter 'document_id' is set
|
|
157
|
-
fail "Missing the required parameter 'document_id' when calling
|
|
157
|
+
fail "Missing the required parameter 'document_id' when calling put_documents_document_id" if document_id.nil?
|
|
158
158
|
|
|
159
159
|
# resource path
|
|
160
160
|
path = "/api/v1/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
|
@@ -189,7 +189,7 @@ module PureCloud
|
|
|
189
189
|
:auth_names => auth_names,
|
|
190
190
|
:return_type => 'FaxDocument')
|
|
191
191
|
if @api_client.config.debugging
|
|
192
|
-
@api_client.config.logger.debug "API called: FaxApi#
|
|
192
|
+
@api_client.config.logger.debug "API called: FaxApi#put_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
193
193
|
end
|
|
194
194
|
return data, status_code, headers
|
|
195
195
|
end
|
|
@@ -199,8 +199,8 @@ module PureCloud
|
|
|
199
199
|
# @param document_id Document ID
|
|
200
200
|
# @param [Hash] opts the optional parameters
|
|
201
201
|
# @return [nil]
|
|
202
|
-
def
|
|
203
|
-
|
|
202
|
+
def delete_documents_document_id(document_id, opts = {})
|
|
203
|
+
delete_documents_document_id_with_http_info(document_id, opts)
|
|
204
204
|
return nil
|
|
205
205
|
end
|
|
206
206
|
|
|
@@ -209,13 +209,13 @@ module PureCloud
|
|
|
209
209
|
# @param document_id Document ID
|
|
210
210
|
# @param [Hash] opts the optional parameters
|
|
211
211
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
212
|
-
def
|
|
212
|
+
def delete_documents_document_id_with_http_info(document_id, opts = {})
|
|
213
213
|
if @api_client.config.debugging
|
|
214
|
-
@api_client.config.logger.debug "Calling API: FaxApi#
|
|
214
|
+
@api_client.config.logger.debug "Calling API: FaxApi#delete_documents_document_id ..."
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# verify the required parameter 'document_id' is set
|
|
218
|
-
fail "Missing the required parameter 'document_id' when calling
|
|
218
|
+
fail "Missing the required parameter 'document_id' when calling delete_documents_document_id" if document_id.nil?
|
|
219
219
|
|
|
220
220
|
# resource path
|
|
221
221
|
path = "/api/v1/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
|
@@ -249,7 +249,7 @@ module PureCloud
|
|
|
249
249
|
:body => post_body,
|
|
250
250
|
:auth_names => auth_names)
|
|
251
251
|
if @api_client.config.debugging
|
|
252
|
-
@api_client.config.logger.debug "API called: FaxApi#
|
|
252
|
+
@api_client.config.logger.debug "API called: FaxApi#delete_documents_document_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
253
253
|
end
|
|
254
254
|
return data, status_code, headers
|
|
255
255
|
end
|
|
@@ -259,8 +259,8 @@ module PureCloud
|
|
|
259
259
|
# @param document_id Document ID
|
|
260
260
|
# @param [Hash] opts the optional parameters
|
|
261
261
|
# @return [DownloadResponse]
|
|
262
|
-
def
|
|
263
|
-
data, status_code, headers =
|
|
262
|
+
def get_documents_document_id_content(document_id, opts = {})
|
|
263
|
+
data, status_code, headers = get_documents_document_id_content_with_http_info(document_id, opts)
|
|
264
264
|
return data
|
|
265
265
|
end
|
|
266
266
|
|
|
@@ -269,13 +269,13 @@ module PureCloud
|
|
|
269
269
|
# @param document_id Document ID
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
271
|
# @return [Array<(DownloadResponse, Fixnum, Hash)>] DownloadResponse data, response status code and response headers
|
|
272
|
-
def
|
|
272
|
+
def get_documents_document_id_content_with_http_info(document_id, opts = {})
|
|
273
273
|
if @api_client.config.debugging
|
|
274
|
-
@api_client.config.logger.debug "Calling API: FaxApi#
|
|
274
|
+
@api_client.config.logger.debug "Calling API: FaxApi#get_documents_document_id_content ..."
|
|
275
275
|
end
|
|
276
276
|
|
|
277
277
|
# verify the required parameter 'document_id' is set
|
|
278
|
-
fail "Missing the required parameter 'document_id' when calling
|
|
278
|
+
fail "Missing the required parameter 'document_id' when calling get_documents_document_id_content" if document_id.nil?
|
|
279
279
|
|
|
280
280
|
# resource path
|
|
281
281
|
path = "/api/v1/fax/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
|
|
@@ -310,7 +310,7 @@ module PureCloud
|
|
|
310
310
|
:auth_names => auth_names,
|
|
311
311
|
:return_type => 'DownloadResponse')
|
|
312
312
|
if @api_client.config.debugging
|
|
313
|
-
@api_client.config.logger.debug "API called: FaxApi#
|
|
313
|
+
@api_client.config.logger.debug "API called: FaxApi#get_documents_document_id_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
314
314
|
end
|
|
315
315
|
return data, status_code, headers
|
|
316
316
|
end
|
|
@@ -128,8 +128,8 @@ module PureCloud
|
|
|
128
128
|
# @param client_id client Id
|
|
129
129
|
# @param [Hash] opts the optional parameters
|
|
130
130
|
# @return [Geolocation]
|
|
131
|
-
def
|
|
132
|
-
data, status_code, headers =
|
|
131
|
+
def get_user_id_geolocations_client_id(user_id, client_id, opts = {})
|
|
132
|
+
data, status_code, headers = get_user_id_geolocations_client_id_with_http_info(user_id, client_id, opts)
|
|
133
133
|
return data
|
|
134
134
|
end
|
|
135
135
|
|
|
@@ -139,16 +139,16 @@ module PureCloud
|
|
|
139
139
|
# @param client_id client Id
|
|
140
140
|
# @param [Hash] opts the optional parameters
|
|
141
141
|
# @return [Array<(Geolocation, Fixnum, Hash)>] Geolocation data, response status code and response headers
|
|
142
|
-
def
|
|
142
|
+
def get_user_id_geolocations_client_id_with_http_info(user_id, client_id, opts = {})
|
|
143
143
|
if @api_client.config.debugging
|
|
144
|
-
@api_client.config.logger.debug "Calling API: GeolocationApi#
|
|
144
|
+
@api_client.config.logger.debug "Calling API: GeolocationApi#get_user_id_geolocations_client_id ..."
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
# verify the required parameter 'user_id' is set
|
|
148
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
148
|
+
fail "Missing the required parameter 'user_id' when calling get_user_id_geolocations_client_id" if user_id.nil?
|
|
149
149
|
|
|
150
150
|
# verify the required parameter 'client_id' is set
|
|
151
|
-
fail "Missing the required parameter 'client_id' when calling
|
|
151
|
+
fail "Missing the required parameter 'client_id' when calling get_user_id_geolocations_client_id" if client_id.nil?
|
|
152
152
|
|
|
153
153
|
# resource path
|
|
154
154
|
path = "/api/v1/users/{userId}/geolocations/{clientId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'clientId' + '}', client_id.to_s)
|
|
@@ -183,7 +183,7 @@ module PureCloud
|
|
|
183
183
|
:auth_names => auth_names,
|
|
184
184
|
:return_type => 'Geolocation')
|
|
185
185
|
if @api_client.config.debugging
|
|
186
|
-
@api_client.config.logger.debug "API called: GeolocationApi#
|
|
186
|
+
@api_client.config.logger.debug "API called: GeolocationApi#get_user_id_geolocations_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
187
187
|
end
|
|
188
188
|
return data, status_code, headers
|
|
189
189
|
end
|
|
@@ -195,8 +195,8 @@ module PureCloud
|
|
|
195
195
|
# @param [Hash] opts the optional parameters
|
|
196
196
|
# @option opts [Geolocation] :body
|
|
197
197
|
# @return [Geolocation]
|
|
198
|
-
def
|
|
199
|
-
data, status_code, headers =
|
|
198
|
+
def patch_user_id_geolocations_client_id(user_id, client_id, opts = {})
|
|
199
|
+
data, status_code, headers = patch_user_id_geolocations_client_id_with_http_info(user_id, client_id, opts)
|
|
200
200
|
return data
|
|
201
201
|
end
|
|
202
202
|
|
|
@@ -207,16 +207,16 @@ module PureCloud
|
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
|
208
208
|
# @option opts [Geolocation] :body
|
|
209
209
|
# @return [Array<(Geolocation, Fixnum, Hash)>] Geolocation data, response status code and response headers
|
|
210
|
-
def
|
|
210
|
+
def patch_user_id_geolocations_client_id_with_http_info(user_id, client_id, opts = {})
|
|
211
211
|
if @api_client.config.debugging
|
|
212
|
-
@api_client.config.logger.debug "Calling API: GeolocationApi#
|
|
212
|
+
@api_client.config.logger.debug "Calling API: GeolocationApi#patch_user_id_geolocations_client_id ..."
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# verify the required parameter 'user_id' is set
|
|
216
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
216
|
+
fail "Missing the required parameter 'user_id' when calling patch_user_id_geolocations_client_id" if user_id.nil?
|
|
217
217
|
|
|
218
218
|
# verify the required parameter 'client_id' is set
|
|
219
|
-
fail "Missing the required parameter 'client_id' when calling
|
|
219
|
+
fail "Missing the required parameter 'client_id' when calling patch_user_id_geolocations_client_id" if client_id.nil?
|
|
220
220
|
|
|
221
221
|
# resource path
|
|
222
222
|
path = "/api/v1/users/{userId}/geolocations/{clientId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'clientId' + '}', client_id.to_s)
|
|
@@ -251,7 +251,7 @@ module PureCloud
|
|
|
251
251
|
:auth_names => auth_names,
|
|
252
252
|
:return_type => 'Geolocation')
|
|
253
253
|
if @api_client.config.debugging
|
|
254
|
-
@api_client.config.logger.debug "API called: GeolocationApi#
|
|
254
|
+
@api_client.config.logger.debug "API called: GeolocationApi#patch_user_id_geolocations_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
255
255
|
end
|
|
256
256
|
return data, status_code, headers
|
|
257
257
|
end
|
|
@@ -14,8 +14,8 @@ module PureCloud
|
|
|
14
14
|
# @option opts [Integer] :page_size Page size
|
|
15
15
|
# @option opts [Integer] :page_number Page number
|
|
16
16
|
# @return [DomainEntityListing]
|
|
17
|
-
def
|
|
18
|
-
data, status_code, headers =
|
|
17
|
+
def get_greetings(opts = {})
|
|
18
|
+
data, status_code, headers = get_greetings_with_http_info(opts)
|
|
19
19
|
return data
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -25,9 +25,9 @@ module PureCloud
|
|
|
25
25
|
# @option opts [Integer] :page_size Page size
|
|
26
26
|
# @option opts [Integer] :page_number Page number
|
|
27
27
|
# @return [Array<(DomainEntityListing, Fixnum, Hash)>] DomainEntityListing data, response status code and response headers
|
|
28
|
-
def
|
|
28
|
+
def get_greetings_with_http_info(opts = {})
|
|
29
29
|
if @api_client.config.debugging
|
|
30
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
30
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#get_greetings ..."
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# resource path
|
|
@@ -65,7 +65,7 @@ module PureCloud
|
|
|
65
65
|
:auth_names => auth_names,
|
|
66
66
|
:return_type => 'DomainEntityListing')
|
|
67
67
|
if @api_client.config.debugging
|
|
68
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
68
|
+
@api_client.config.logger.debug "API called: GreetingsApi#get_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
69
69
|
end
|
|
70
70
|
return data, status_code, headers
|
|
71
71
|
end
|
|
@@ -75,8 +75,8 @@ module PureCloud
|
|
|
75
75
|
# @param body The Greeting to create
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
77
|
# @return [DefaultGreetingList]
|
|
78
|
-
def
|
|
79
|
-
data, status_code, headers =
|
|
78
|
+
def post_greetings(body, opts = {})
|
|
79
|
+
data, status_code, headers = post_greetings_with_http_info(body, opts)
|
|
80
80
|
return data
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -85,13 +85,13 @@ module PureCloud
|
|
|
85
85
|
# @param body The Greeting to create
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
|
|
88
|
-
def
|
|
88
|
+
def post_greetings_with_http_info(body, opts = {})
|
|
89
89
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
90
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#post_greetings ..."
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# verify the required parameter 'body' is set
|
|
94
|
-
fail "Missing the required parameter 'body' when calling
|
|
94
|
+
fail "Missing the required parameter 'body' when calling post_greetings" if body.nil?
|
|
95
95
|
|
|
96
96
|
# resource path
|
|
97
97
|
path = "/api/v1/greetings".sub('{format}','json')
|
|
@@ -126,7 +126,7 @@ module PureCloud
|
|
|
126
126
|
:auth_names => auth_names,
|
|
127
127
|
:return_type => 'DefaultGreetingList')
|
|
128
128
|
if @api_client.config.debugging
|
|
129
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
129
|
+
@api_client.config.logger.debug "API called: GreetingsApi#post_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
130
130
|
end
|
|
131
131
|
return data, status_code, headers
|
|
132
132
|
end
|
|
@@ -192,8 +192,8 @@ module PureCloud
|
|
|
192
192
|
# @param body The updated defaultGreetingList
|
|
193
193
|
# @param [Hash] opts the optional parameters
|
|
194
194
|
# @return [DefaultGreetingList]
|
|
195
|
-
def
|
|
196
|
-
data, status_code, headers =
|
|
195
|
+
def put_defaults(body, opts = {})
|
|
196
|
+
data, status_code, headers = put_defaults_with_http_info(body, opts)
|
|
197
197
|
return data
|
|
198
198
|
end
|
|
199
199
|
|
|
@@ -202,13 +202,13 @@ module PureCloud
|
|
|
202
202
|
# @param body The updated defaultGreetingList
|
|
203
203
|
# @param [Hash] opts the optional parameters
|
|
204
204
|
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
|
|
205
|
-
def
|
|
205
|
+
def put_defaults_with_http_info(body, opts = {})
|
|
206
206
|
if @api_client.config.debugging
|
|
207
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
207
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#put_defaults ..."
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
# verify the required parameter 'body' is set
|
|
211
|
-
fail "Missing the required parameter 'body' when calling
|
|
211
|
+
fail "Missing the required parameter 'body' when calling put_defaults" if body.nil?
|
|
212
212
|
|
|
213
213
|
# resource path
|
|
214
214
|
path = "/api/v1/greetings/defaults".sub('{format}','json')
|
|
@@ -243,7 +243,7 @@ module PureCloud
|
|
|
243
243
|
:auth_names => auth_names,
|
|
244
244
|
:return_type => 'DefaultGreetingList')
|
|
245
245
|
if @api_client.config.debugging
|
|
246
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
246
|
+
@api_client.config.logger.debug "API called: GreetingsApi#put_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
247
|
end
|
|
248
248
|
return data, status_code, headers
|
|
249
249
|
end
|
|
@@ -253,8 +253,8 @@ module PureCloud
|
|
|
253
253
|
# @param greeting_id Greeting ID
|
|
254
254
|
# @param [Hash] opts the optional parameters
|
|
255
255
|
# @return [Greeting]
|
|
256
|
-
def
|
|
257
|
-
data, status_code, headers =
|
|
256
|
+
def get_greeting_id(greeting_id, opts = {})
|
|
257
|
+
data, status_code, headers = get_greeting_id_with_http_info(greeting_id, opts)
|
|
258
258
|
return data
|
|
259
259
|
end
|
|
260
260
|
|
|
@@ -263,13 +263,13 @@ module PureCloud
|
|
|
263
263
|
# @param greeting_id Greeting ID
|
|
264
264
|
# @param [Hash] opts the optional parameters
|
|
265
265
|
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
|
|
266
|
-
def
|
|
266
|
+
def get_greeting_id_with_http_info(greeting_id, opts = {})
|
|
267
267
|
if @api_client.config.debugging
|
|
268
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
268
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#get_greeting_id ..."
|
|
269
269
|
end
|
|
270
270
|
|
|
271
271
|
# verify the required parameter 'greeting_id' is set
|
|
272
|
-
fail "Missing the required parameter 'greeting_id' when calling
|
|
272
|
+
fail "Missing the required parameter 'greeting_id' when calling get_greeting_id" if greeting_id.nil?
|
|
273
273
|
|
|
274
274
|
# resource path
|
|
275
275
|
path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)
|
|
@@ -304,7 +304,7 @@ module PureCloud
|
|
|
304
304
|
:auth_names => auth_names,
|
|
305
305
|
:return_type => 'Greeting')
|
|
306
306
|
if @api_client.config.debugging
|
|
307
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
307
|
+
@api_client.config.logger.debug "API called: GreetingsApi#get_greeting_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
308
308
|
end
|
|
309
309
|
return data, status_code, headers
|
|
310
310
|
end
|
|
@@ -315,8 +315,8 @@ module PureCloud
|
|
|
315
315
|
# @param body The updated Greeting
|
|
316
316
|
# @param [Hash] opts the optional parameters
|
|
317
317
|
# @return [Greeting]
|
|
318
|
-
def
|
|
319
|
-
data, status_code, headers =
|
|
318
|
+
def put_greeting_id(greeting_id, body, opts = {})
|
|
319
|
+
data, status_code, headers = put_greeting_id_with_http_info(greeting_id, body, opts)
|
|
320
320
|
return data
|
|
321
321
|
end
|
|
322
322
|
|
|
@@ -326,16 +326,16 @@ module PureCloud
|
|
|
326
326
|
# @param body The updated Greeting
|
|
327
327
|
# @param [Hash] opts the optional parameters
|
|
328
328
|
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
|
|
329
|
-
def
|
|
329
|
+
def put_greeting_id_with_http_info(greeting_id, body, opts = {})
|
|
330
330
|
if @api_client.config.debugging
|
|
331
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
331
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#put_greeting_id ..."
|
|
332
332
|
end
|
|
333
333
|
|
|
334
334
|
# verify the required parameter 'greeting_id' is set
|
|
335
|
-
fail "Missing the required parameter 'greeting_id' when calling
|
|
335
|
+
fail "Missing the required parameter 'greeting_id' when calling put_greeting_id" if greeting_id.nil?
|
|
336
336
|
|
|
337
337
|
# verify the required parameter 'body' is set
|
|
338
|
-
fail "Missing the required parameter 'body' when calling
|
|
338
|
+
fail "Missing the required parameter 'body' when calling put_greeting_id" if body.nil?
|
|
339
339
|
|
|
340
340
|
# resource path
|
|
341
341
|
path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)
|
|
@@ -370,7 +370,7 @@ module PureCloud
|
|
|
370
370
|
:auth_names => auth_names,
|
|
371
371
|
:return_type => 'Greeting')
|
|
372
372
|
if @api_client.config.debugging
|
|
373
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
373
|
+
@api_client.config.logger.debug "API called: GreetingsApi#put_greeting_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
374
374
|
end
|
|
375
375
|
return data, status_code, headers
|
|
376
376
|
end
|
|
@@ -380,8 +380,8 @@ module PureCloud
|
|
|
380
380
|
# @param greeting_id Greeting ID
|
|
381
381
|
# @param [Hash] opts the optional parameters
|
|
382
382
|
# @return [Greeting]
|
|
383
|
-
def
|
|
384
|
-
data, status_code, headers =
|
|
383
|
+
def delete_greeting_id(greeting_id, opts = {})
|
|
384
|
+
data, status_code, headers = delete_greeting_id_with_http_info(greeting_id, opts)
|
|
385
385
|
return data
|
|
386
386
|
end
|
|
387
387
|
|
|
@@ -390,13 +390,13 @@ module PureCloud
|
|
|
390
390
|
# @param greeting_id Greeting ID
|
|
391
391
|
# @param [Hash] opts the optional parameters
|
|
392
392
|
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
|
|
393
|
-
def
|
|
393
|
+
def delete_greeting_id_with_http_info(greeting_id, opts = {})
|
|
394
394
|
if @api_client.config.debugging
|
|
395
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
395
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#delete_greeting_id ..."
|
|
396
396
|
end
|
|
397
397
|
|
|
398
398
|
# verify the required parameter 'greeting_id' is set
|
|
399
|
-
fail "Missing the required parameter 'greeting_id' when calling
|
|
399
|
+
fail "Missing the required parameter 'greeting_id' when calling delete_greeting_id" if greeting_id.nil?
|
|
400
400
|
|
|
401
401
|
# resource path
|
|
402
402
|
path = "/api/v1/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s)
|
|
@@ -431,7 +431,7 @@ module PureCloud
|
|
|
431
431
|
:auth_names => auth_names,
|
|
432
432
|
:return_type => 'Greeting')
|
|
433
433
|
if @api_client.config.debugging
|
|
434
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
434
|
+
@api_client.config.logger.debug "API called: GreetingsApi#delete_greeting_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
435
435
|
end
|
|
436
436
|
return data, status_code, headers
|
|
437
437
|
end
|
|
@@ -442,8 +442,8 @@ module PureCloud
|
|
|
442
442
|
# @param [Hash] opts the optional parameters
|
|
443
443
|
# @option opts [String] :format_id The desired format (WAV, etc.)
|
|
444
444
|
# @return [GreetingMediaInfo]
|
|
445
|
-
def
|
|
446
|
-
data, status_code, headers =
|
|
445
|
+
def get_greeting_id_media(greeting_id, opts = {})
|
|
446
|
+
data, status_code, headers = get_greeting_id_media_with_http_info(greeting_id, opts)
|
|
447
447
|
return data
|
|
448
448
|
end
|
|
449
449
|
|
|
@@ -453,13 +453,13 @@ module PureCloud
|
|
|
453
453
|
# @param [Hash] opts the optional parameters
|
|
454
454
|
# @option opts [String] :format_id The desired format (WAV, etc.)
|
|
455
455
|
# @return [Array<(GreetingMediaInfo, Fixnum, Hash)>] GreetingMediaInfo data, response status code and response headers
|
|
456
|
-
def
|
|
456
|
+
def get_greeting_id_media_with_http_info(greeting_id, opts = {})
|
|
457
457
|
if @api_client.config.debugging
|
|
458
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
458
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#get_greeting_id_media ..."
|
|
459
459
|
end
|
|
460
460
|
|
|
461
461
|
# verify the required parameter 'greeting_id' is set
|
|
462
|
-
fail "Missing the required parameter 'greeting_id' when calling
|
|
462
|
+
fail "Missing the required parameter 'greeting_id' when calling get_greeting_id_media" if greeting_id.nil?
|
|
463
463
|
|
|
464
464
|
if opts[:'format_id'] && !['WAV'].include?(opts[:'format_id'])
|
|
465
465
|
fail 'invalid value for "format_id", must be one of WAV'
|
|
@@ -499,7 +499,7 @@ module PureCloud
|
|
|
499
499
|
:auth_names => auth_names,
|
|
500
500
|
:return_type => 'GreetingMediaInfo')
|
|
501
501
|
if @api_client.config.debugging
|
|
502
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
502
|
+
@api_client.config.logger.debug "API called: GreetingsApi#get_greeting_id_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
503
503
|
end
|
|
504
504
|
return data, status_code, headers
|
|
505
505
|
end
|
|
@@ -511,8 +511,8 @@ module PureCloud
|
|
|
511
511
|
# @option opts [Integer] :page_size Page size
|
|
512
512
|
# @option opts [Integer] :page_number Page number
|
|
513
513
|
# @return [DomainEntityListing]
|
|
514
|
-
def
|
|
515
|
-
data, status_code, headers =
|
|
514
|
+
def get_user_id_greetings(user_id, opts = {})
|
|
515
|
+
data, status_code, headers = get_user_id_greetings_with_http_info(user_id, opts)
|
|
516
516
|
return data
|
|
517
517
|
end
|
|
518
518
|
|
|
@@ -523,13 +523,13 @@ module PureCloud
|
|
|
523
523
|
# @option opts [Integer] :page_size Page size
|
|
524
524
|
# @option opts [Integer] :page_number Page number
|
|
525
525
|
# @return [Array<(DomainEntityListing, Fixnum, Hash)>] DomainEntityListing data, response status code and response headers
|
|
526
|
-
def
|
|
526
|
+
def get_user_id_greetings_with_http_info(user_id, opts = {})
|
|
527
527
|
if @api_client.config.debugging
|
|
528
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
528
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#get_user_id_greetings ..."
|
|
529
529
|
end
|
|
530
530
|
|
|
531
531
|
# verify the required parameter 'user_id' is set
|
|
532
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
532
|
+
fail "Missing the required parameter 'user_id' when calling get_user_id_greetings" if user_id.nil?
|
|
533
533
|
|
|
534
534
|
# resource path
|
|
535
535
|
path = "/api/v1/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -566,7 +566,7 @@ module PureCloud
|
|
|
566
566
|
:auth_names => auth_names,
|
|
567
567
|
:return_type => 'DomainEntityListing')
|
|
568
568
|
if @api_client.config.debugging
|
|
569
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
569
|
+
@api_client.config.logger.debug "API called: GreetingsApi#get_user_id_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
570
570
|
end
|
|
571
571
|
return data, status_code, headers
|
|
572
572
|
end
|
|
@@ -577,8 +577,8 @@ module PureCloud
|
|
|
577
577
|
# @param body The Greeting to create
|
|
578
578
|
# @param [Hash] opts the optional parameters
|
|
579
579
|
# @return [Greeting]
|
|
580
|
-
def
|
|
581
|
-
data, status_code, headers =
|
|
580
|
+
def post_user_id_greetings(user_id, body, opts = {})
|
|
581
|
+
data, status_code, headers = post_user_id_greetings_with_http_info(user_id, body, opts)
|
|
582
582
|
return data
|
|
583
583
|
end
|
|
584
584
|
|
|
@@ -588,16 +588,16 @@ module PureCloud
|
|
|
588
588
|
# @param body The Greeting to create
|
|
589
589
|
# @param [Hash] opts the optional parameters
|
|
590
590
|
# @return [Array<(Greeting, Fixnum, Hash)>] Greeting data, response status code and response headers
|
|
591
|
-
def
|
|
591
|
+
def post_user_id_greetings_with_http_info(user_id, body, opts = {})
|
|
592
592
|
if @api_client.config.debugging
|
|
593
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
593
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#post_user_id_greetings ..."
|
|
594
594
|
end
|
|
595
595
|
|
|
596
596
|
# verify the required parameter 'user_id' is set
|
|
597
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
597
|
+
fail "Missing the required parameter 'user_id' when calling post_user_id_greetings" if user_id.nil?
|
|
598
598
|
|
|
599
599
|
# verify the required parameter 'body' is set
|
|
600
|
-
fail "Missing the required parameter 'body' when calling
|
|
600
|
+
fail "Missing the required parameter 'body' when calling post_user_id_greetings" if body.nil?
|
|
601
601
|
|
|
602
602
|
# resource path
|
|
603
603
|
path = "/api/v1/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -632,7 +632,7 @@ module PureCloud
|
|
|
632
632
|
:auth_names => auth_names,
|
|
633
633
|
:return_type => 'Greeting')
|
|
634
634
|
if @api_client.config.debugging
|
|
635
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
635
|
+
@api_client.config.logger.debug "API called: GreetingsApi#post_user_id_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
636
636
|
end
|
|
637
637
|
return data, status_code, headers
|
|
638
638
|
end
|
|
@@ -642,8 +642,8 @@ module PureCloud
|
|
|
642
642
|
# @param user_id User ID
|
|
643
643
|
# @param [Hash] opts the optional parameters
|
|
644
644
|
# @return [DefaultGreetingList]
|
|
645
|
-
def
|
|
646
|
-
data, status_code, headers =
|
|
645
|
+
def get_user_id_greetings_defaults(user_id, opts = {})
|
|
646
|
+
data, status_code, headers = get_user_id_greetings_defaults_with_http_info(user_id, opts)
|
|
647
647
|
return data
|
|
648
648
|
end
|
|
649
649
|
|
|
@@ -652,13 +652,13 @@ module PureCloud
|
|
|
652
652
|
# @param user_id User ID
|
|
653
653
|
# @param [Hash] opts the optional parameters
|
|
654
654
|
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
|
|
655
|
-
def
|
|
655
|
+
def get_user_id_greetings_defaults_with_http_info(user_id, opts = {})
|
|
656
656
|
if @api_client.config.debugging
|
|
657
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
657
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#get_user_id_greetings_defaults ..."
|
|
658
658
|
end
|
|
659
659
|
|
|
660
660
|
# verify the required parameter 'user_id' is set
|
|
661
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
661
|
+
fail "Missing the required parameter 'user_id' when calling get_user_id_greetings_defaults" if user_id.nil?
|
|
662
662
|
|
|
663
663
|
# resource path
|
|
664
664
|
path = "/api/v1/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -693,7 +693,7 @@ module PureCloud
|
|
|
693
693
|
:auth_names => auth_names,
|
|
694
694
|
:return_type => 'DefaultGreetingList')
|
|
695
695
|
if @api_client.config.debugging
|
|
696
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
696
|
+
@api_client.config.logger.debug "API called: GreetingsApi#get_user_id_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
697
697
|
end
|
|
698
698
|
return data, status_code, headers
|
|
699
699
|
end
|
|
@@ -704,8 +704,8 @@ module PureCloud
|
|
|
704
704
|
# @param body The updated defaultGreetingList
|
|
705
705
|
# @param [Hash] opts the optional parameters
|
|
706
706
|
# @return [DefaultGreetingList]
|
|
707
|
-
def
|
|
708
|
-
data, status_code, headers =
|
|
707
|
+
def put_user_id_greetings_defaults(user_id, body, opts = {})
|
|
708
|
+
data, status_code, headers = put_user_id_greetings_defaults_with_http_info(user_id, body, opts)
|
|
709
709
|
return data
|
|
710
710
|
end
|
|
711
711
|
|
|
@@ -715,16 +715,16 @@ module PureCloud
|
|
|
715
715
|
# @param body The updated defaultGreetingList
|
|
716
716
|
# @param [Hash] opts the optional parameters
|
|
717
717
|
# @return [Array<(DefaultGreetingList, Fixnum, Hash)>] DefaultGreetingList data, response status code and response headers
|
|
718
|
-
def
|
|
718
|
+
def put_user_id_greetings_defaults_with_http_info(user_id, body, opts = {})
|
|
719
719
|
if @api_client.config.debugging
|
|
720
|
-
@api_client.config.logger.debug "Calling API: GreetingsApi#
|
|
720
|
+
@api_client.config.logger.debug "Calling API: GreetingsApi#put_user_id_greetings_defaults ..."
|
|
721
721
|
end
|
|
722
722
|
|
|
723
723
|
# verify the required parameter 'user_id' is set
|
|
724
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
724
|
+
fail "Missing the required parameter 'user_id' when calling put_user_id_greetings_defaults" if user_id.nil?
|
|
725
725
|
|
|
726
726
|
# verify the required parameter 'body' is set
|
|
727
|
-
fail "Missing the required parameter 'body' when calling
|
|
727
|
+
fail "Missing the required parameter 'body' when calling put_user_id_greetings_defaults" if body.nil?
|
|
728
728
|
|
|
729
729
|
# resource path
|
|
730
730
|
path = "/api/v1/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -759,7 +759,7 @@ module PureCloud
|
|
|
759
759
|
:auth_names => auth_names,
|
|
760
760
|
:return_type => 'DefaultGreetingList')
|
|
761
761
|
if @api_client.config.debugging
|
|
762
|
-
@api_client.config.logger.debug "API called: GreetingsApi#
|
|
762
|
+
@api_client.config.logger.debug "API called: GreetingsApi#put_user_id_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
763
763
|
end
|
|
764
764
|
return data, status_code, headers
|
|
765
765
|
end
|