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 [Hash] opts the optional parameters
|
|
14
14
|
# @option opts [Certificate] :body
|
|
15
15
|
# @return [ParsedCertificate]
|
|
16
|
-
def
|
|
17
|
-
data, status_code, headers =
|
|
16
|
+
def post_details(opts = {})
|
|
17
|
+
data, status_code, headers = post_details_with_http_info(opts)
|
|
18
18
|
return data
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -23,9 +23,9 @@ module PureCloud
|
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
24
|
# @option opts [Certificate] :body
|
|
25
25
|
# @return [Array<(ParsedCertificate, Fixnum, Hash)>] ParsedCertificate data, response status code and response headers
|
|
26
|
-
def
|
|
26
|
+
def post_details_with_http_info(opts = {})
|
|
27
27
|
if @api_client.config.debugging
|
|
28
|
-
@api_client.config.logger.debug "Calling API: UtilitiesApi#
|
|
28
|
+
@api_client.config.logger.debug "Calling API: UtilitiesApi#post_details ..."
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# resource path
|
|
@@ -61,7 +61,7 @@ module PureCloud
|
|
|
61
61
|
:auth_names => auth_names,
|
|
62
62
|
:return_type => 'ParsedCertificate')
|
|
63
63
|
if @api_client.config.debugging
|
|
64
|
-
@api_client.config.logger.debug "API called: UtilitiesApi#
|
|
64
|
+
@api_client.config.logger.debug "API called: UtilitiesApi#post_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
65
65
|
end
|
|
66
66
|
return data, status_code, headers
|
|
67
67
|
end
|
|
@@ -71,8 +71,8 @@ module PureCloud
|
|
|
71
71
|
# @param [Hash] opts the optional parameters
|
|
72
72
|
# @option opts [ValidateAddressRequest] :body
|
|
73
73
|
# @return [ValidateAddressResponse]
|
|
74
|
-
def
|
|
75
|
-
data, status_code, headers =
|
|
74
|
+
def post_addressvalidation(opts = {})
|
|
75
|
+
data, status_code, headers = post_addressvalidation_with_http_info(opts)
|
|
76
76
|
return data
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -81,9 +81,9 @@ module PureCloud
|
|
|
81
81
|
# @param [Hash] opts the optional parameters
|
|
82
82
|
# @option opts [ValidateAddressRequest] :body
|
|
83
83
|
# @return [Array<(ValidateAddressResponse, Fixnum, Hash)>] ValidateAddressResponse data, response status code and response headers
|
|
84
|
-
def
|
|
84
|
+
def post_addressvalidation_with_http_info(opts = {})
|
|
85
85
|
if @api_client.config.debugging
|
|
86
|
-
@api_client.config.logger.debug "Calling API: UtilitiesApi#
|
|
86
|
+
@api_client.config.logger.debug "Calling API: UtilitiesApi#post_addressvalidation ..."
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# resource path
|
|
@@ -119,7 +119,7 @@ module PureCloud
|
|
|
119
119
|
:auth_names => auth_names,
|
|
120
120
|
:return_type => 'ValidateAddressResponse')
|
|
121
121
|
if @api_client.config.debugging
|
|
122
|
-
@api_client.config.logger.debug "API called: UtilitiesApi#
|
|
122
|
+
@api_client.config.logger.debug "API called: UtilitiesApi#post_addressvalidation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
123
123
|
end
|
|
124
124
|
return data, status_code, headers
|
|
125
125
|
end
|
|
@@ -128,8 +128,8 @@ module PureCloud
|
|
|
128
128
|
#
|
|
129
129
|
# @param [Hash] opts the optional parameters
|
|
130
130
|
# @return [ServerDate]
|
|
131
|
-
def
|
|
132
|
-
data, status_code, headers =
|
|
131
|
+
def get_date(opts = {})
|
|
132
|
+
data, status_code, headers = get_date_with_http_info(opts)
|
|
133
133
|
return data
|
|
134
134
|
end
|
|
135
135
|
|
|
@@ -137,9 +137,9 @@ module PureCloud
|
|
|
137
137
|
#
|
|
138
138
|
# @param [Hash] opts the optional parameters
|
|
139
139
|
# @return [Array<(ServerDate, Fixnum, Hash)>] ServerDate data, response status code and response headers
|
|
140
|
-
def
|
|
140
|
+
def get_date_with_http_info(opts = {})
|
|
141
141
|
if @api_client.config.debugging
|
|
142
|
-
@api_client.config.logger.debug "Calling API: UtilitiesApi#
|
|
142
|
+
@api_client.config.logger.debug "Calling API: UtilitiesApi#get_date ..."
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
# resource path
|
|
@@ -175,7 +175,63 @@ module PureCloud
|
|
|
175
175
|
:auth_names => auth_names,
|
|
176
176
|
:return_type => 'ServerDate')
|
|
177
177
|
if @api_client.config.debugging
|
|
178
|
-
@api_client.config.logger.debug "API called: UtilitiesApi#
|
|
178
|
+
@api_client.config.logger.debug "API called: UtilitiesApi#get_date\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
179
|
+
end
|
|
180
|
+
return data, status_code, headers
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Get health.
|
|
184
|
+
#
|
|
185
|
+
# @param [Hash] opts the optional parameters
|
|
186
|
+
# @return [HealthCheckInfo]
|
|
187
|
+
def get_check(opts = {})
|
|
188
|
+
data, status_code, headers = get_check_with_http_info(opts)
|
|
189
|
+
return data
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Get health.
|
|
193
|
+
#
|
|
194
|
+
# @param [Hash] opts the optional parameters
|
|
195
|
+
# @return [Array<(HealthCheckInfo, Fixnum, Hash)>] HealthCheckInfo data, response status code and response headers
|
|
196
|
+
def get_check_with_http_info(opts = {})
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug "Calling API: UtilitiesApi#get_check ..."
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# resource path
|
|
202
|
+
path = "/api/v1/health/check".sub('{format}','json')
|
|
203
|
+
|
|
204
|
+
# query parameters
|
|
205
|
+
query_params = {}
|
|
206
|
+
|
|
207
|
+
# header parameters
|
|
208
|
+
header_params = {}
|
|
209
|
+
|
|
210
|
+
# HTTP header 'Accept' (if needed)
|
|
211
|
+
_header_accept = ['application/json']
|
|
212
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
213
|
+
|
|
214
|
+
# HTTP header 'Content-Type'
|
|
215
|
+
_header_content_type = ['application/json']
|
|
216
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
217
|
+
|
|
218
|
+
# form parameters
|
|
219
|
+
form_params = {}
|
|
220
|
+
|
|
221
|
+
# http body (model)
|
|
222
|
+
post_body = nil
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
auth_names = ['PureCloud Auth']
|
|
226
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
227
|
+
:header_params => header_params,
|
|
228
|
+
:query_params => query_params,
|
|
229
|
+
:form_params => form_params,
|
|
230
|
+
:body => post_body,
|
|
231
|
+
:auth_names => auth_names,
|
|
232
|
+
:return_type => 'HealthCheckInfo')
|
|
233
|
+
if @api_client.config.debugging
|
|
234
|
+
@api_client.config.logger.debug "API called: UtilitiesApi#get_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
179
235
|
end
|
|
180
236
|
return data, status_code, headers
|
|
181
237
|
end
|
|
@@ -13,8 +13,8 @@ module PureCloud
|
|
|
13
13
|
# @param user_id User ID
|
|
14
14
|
# @param [Hash] opts the optional parameters
|
|
15
15
|
# @return [VoicemailUserPolicy]
|
|
16
|
-
def
|
|
17
|
-
data, status_code, headers =
|
|
16
|
+
def get_uservoicemailpolicies_user_id(user_id, opts = {})
|
|
17
|
+
data, status_code, headers = get_uservoicemailpolicies_user_id_with_http_info(user_id, opts)
|
|
18
18
|
return data
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -23,13 +23,13 @@ module PureCloud
|
|
|
23
23
|
# @param user_id User ID
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [Array<(VoicemailUserPolicy, Fixnum, Hash)>] VoicemailUserPolicy data, response status code and response headers
|
|
26
|
-
def
|
|
26
|
+
def get_uservoicemailpolicies_user_id_with_http_info(user_id, opts = {})
|
|
27
27
|
if @api_client.config.debugging
|
|
28
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
28
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#get_uservoicemailpolicies_user_id ..."
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# verify the required parameter 'user_id' is set
|
|
32
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
32
|
+
fail "Missing the required parameter 'user_id' when calling get_uservoicemailpolicies_user_id" if user_id.nil?
|
|
33
33
|
|
|
34
34
|
# resource path
|
|
35
35
|
path = "/api/v1/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -64,7 +64,7 @@ module PureCloud
|
|
|
64
64
|
:auth_names => auth_names,
|
|
65
65
|
:return_type => 'VoicemailUserPolicy')
|
|
66
66
|
if @api_client.config.debugging
|
|
67
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
67
|
+
@api_client.config.logger.debug "API called: VoicemailApi#get_uservoicemailpolicies_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
68
68
|
end
|
|
69
69
|
return data, status_code, headers
|
|
70
70
|
end
|
|
@@ -75,8 +75,8 @@ module PureCloud
|
|
|
75
75
|
# @param body The user's voicemail policy
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
77
|
# @return [VoicemailUserPolicy]
|
|
78
|
-
def
|
|
79
|
-
data, status_code, headers =
|
|
78
|
+
def patch_uservoicemailpolicies_user_id(user_id, body, opts = {})
|
|
79
|
+
data, status_code, headers = patch_uservoicemailpolicies_user_id_with_http_info(user_id, body, opts)
|
|
80
80
|
return data
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -86,16 +86,16 @@ module PureCloud
|
|
|
86
86
|
# @param body The user's voicemail policy
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @return [Array<(VoicemailUserPolicy, Fixnum, Hash)>] VoicemailUserPolicy data, response status code and response headers
|
|
89
|
-
def
|
|
89
|
+
def patch_uservoicemailpolicies_user_id_with_http_info(user_id, body, opts = {})
|
|
90
90
|
if @api_client.config.debugging
|
|
91
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
91
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#patch_uservoicemailpolicies_user_id ..."
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# verify the required parameter 'user_id' is set
|
|
95
|
-
fail "Missing the required parameter 'user_id' when calling
|
|
95
|
+
fail "Missing the required parameter 'user_id' when calling patch_uservoicemailpolicies_user_id" if user_id.nil?
|
|
96
96
|
|
|
97
97
|
# verify the required parameter 'body' is set
|
|
98
|
-
fail "Missing the required parameter 'body' when calling
|
|
98
|
+
fail "Missing the required parameter 'body' when calling patch_uservoicemailpolicies_user_id" if body.nil?
|
|
99
99
|
|
|
100
100
|
# resource path
|
|
101
101
|
path = "/api/v1/configuration/uservoicemailpolicies/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
|
@@ -130,7 +130,7 @@ module PureCloud
|
|
|
130
130
|
:auth_names => auth_names,
|
|
131
131
|
:return_type => 'VoicemailUserPolicy')
|
|
132
132
|
if @api_client.config.debugging
|
|
133
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
133
|
+
@api_client.config.logger.debug "API called: VoicemailApi#patch_uservoicemailpolicies_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
134
134
|
end
|
|
135
135
|
return data, status_code, headers
|
|
136
136
|
end
|
|
@@ -196,8 +196,8 @@ module PureCloud
|
|
|
196
196
|
# @param [Hash] opts the optional parameters
|
|
197
197
|
# @option opts [VoicemailOrganizationPolicy] :body Policy
|
|
198
198
|
# @return [VoicemailOrganizationPolicy]
|
|
199
|
-
def
|
|
200
|
-
data, status_code, headers =
|
|
199
|
+
def put_voicemailpolicy(opts = {})
|
|
200
|
+
data, status_code, headers = put_voicemailpolicy_with_http_info(opts)
|
|
201
201
|
return data
|
|
202
202
|
end
|
|
203
203
|
|
|
@@ -206,9 +206,9 @@ module PureCloud
|
|
|
206
206
|
# @param [Hash] opts the optional parameters
|
|
207
207
|
# @option opts [VoicemailOrganizationPolicy] :body Policy
|
|
208
208
|
# @return [Array<(VoicemailOrganizationPolicy, Fixnum, Hash)>] VoicemailOrganizationPolicy data, response status code and response headers
|
|
209
|
-
def
|
|
209
|
+
def put_voicemailpolicy_with_http_info(opts = {})
|
|
210
210
|
if @api_client.config.debugging
|
|
211
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
211
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#put_voicemailpolicy ..."
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# resource path
|
|
@@ -244,7 +244,7 @@ module PureCloud
|
|
|
244
244
|
:auth_names => auth_names,
|
|
245
245
|
:return_type => 'VoicemailOrganizationPolicy')
|
|
246
246
|
if @api_client.config.debugging
|
|
247
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
247
|
+
@api_client.config.logger.debug "API called: VoicemailApi#put_voicemailpolicy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
248
248
|
end
|
|
249
249
|
return data, status_code, headers
|
|
250
250
|
end
|
|
@@ -422,8 +422,8 @@ module PureCloud
|
|
|
422
422
|
# @param message_id Message ID
|
|
423
423
|
# @param [Hash] opts the optional parameters
|
|
424
424
|
# @return [VoicemailMessage]
|
|
425
|
-
def
|
|
426
|
-
data, status_code, headers =
|
|
425
|
+
def get_messages_message_id(message_id, opts = {})
|
|
426
|
+
data, status_code, headers = get_messages_message_id_with_http_info(message_id, opts)
|
|
427
427
|
return data
|
|
428
428
|
end
|
|
429
429
|
|
|
@@ -432,13 +432,13 @@ module PureCloud
|
|
|
432
432
|
# @param message_id Message ID
|
|
433
433
|
# @param [Hash] opts the optional parameters
|
|
434
434
|
# @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers
|
|
435
|
-
def
|
|
435
|
+
def get_messages_message_id_with_http_info(message_id, opts = {})
|
|
436
436
|
if @api_client.config.debugging
|
|
437
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
437
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#get_messages_message_id ..."
|
|
438
438
|
end
|
|
439
439
|
|
|
440
440
|
# verify the required parameter 'message_id' is set
|
|
441
|
-
fail "Missing the required parameter 'message_id' when calling
|
|
441
|
+
fail "Missing the required parameter 'message_id' when calling get_messages_message_id" if message_id.nil?
|
|
442
442
|
|
|
443
443
|
# resource path
|
|
444
444
|
path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
|
|
@@ -473,7 +473,7 @@ module PureCloud
|
|
|
473
473
|
:auth_names => auth_names,
|
|
474
474
|
:return_type => 'VoicemailMessage')
|
|
475
475
|
if @api_client.config.debugging
|
|
476
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
476
|
+
@api_client.config.logger.debug "API called: VoicemailApi#get_messages_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
477
477
|
end
|
|
478
478
|
return data, status_code, headers
|
|
479
479
|
end
|
|
@@ -484,8 +484,8 @@ module PureCloud
|
|
|
484
484
|
# @param [Hash] opts the optional parameters
|
|
485
485
|
# @option opts [VoicemailMessage] :body VoicemailMessage
|
|
486
486
|
# @return [VoicemailMessage]
|
|
487
|
-
def
|
|
488
|
-
data, status_code, headers =
|
|
487
|
+
def put_messages_message_id(message_id, opts = {})
|
|
488
|
+
data, status_code, headers = put_messages_message_id_with_http_info(message_id, opts)
|
|
489
489
|
return data
|
|
490
490
|
end
|
|
491
491
|
|
|
@@ -495,13 +495,13 @@ module PureCloud
|
|
|
495
495
|
# @param [Hash] opts the optional parameters
|
|
496
496
|
# @option opts [VoicemailMessage] :body VoicemailMessage
|
|
497
497
|
# @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers
|
|
498
|
-
def
|
|
498
|
+
def put_messages_message_id_with_http_info(message_id, opts = {})
|
|
499
499
|
if @api_client.config.debugging
|
|
500
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
500
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#put_messages_message_id ..."
|
|
501
501
|
end
|
|
502
502
|
|
|
503
503
|
# verify the required parameter 'message_id' is set
|
|
504
|
-
fail "Missing the required parameter 'message_id' when calling
|
|
504
|
+
fail "Missing the required parameter 'message_id' when calling put_messages_message_id" if message_id.nil?
|
|
505
505
|
|
|
506
506
|
# resource path
|
|
507
507
|
path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
|
|
@@ -536,7 +536,7 @@ module PureCloud
|
|
|
536
536
|
:auth_names => auth_names,
|
|
537
537
|
:return_type => 'VoicemailMessage')
|
|
538
538
|
if @api_client.config.debugging
|
|
539
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
539
|
+
@api_client.config.logger.debug "API called: VoicemailApi#put_messages_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
540
540
|
end
|
|
541
541
|
return data, status_code, headers
|
|
542
542
|
end
|
|
@@ -546,8 +546,8 @@ module PureCloud
|
|
|
546
546
|
# @param message_id Message ID
|
|
547
547
|
# @param [Hash] opts the optional parameters
|
|
548
548
|
# @return [String]
|
|
549
|
-
def
|
|
550
|
-
data, status_code, headers =
|
|
549
|
+
def delete_messages_message_id(message_id, opts = {})
|
|
550
|
+
data, status_code, headers = delete_messages_message_id_with_http_info(message_id, opts)
|
|
551
551
|
return data
|
|
552
552
|
end
|
|
553
553
|
|
|
@@ -556,13 +556,13 @@ module PureCloud
|
|
|
556
556
|
# @param message_id Message ID
|
|
557
557
|
# @param [Hash] opts the optional parameters
|
|
558
558
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
559
|
-
def
|
|
559
|
+
def delete_messages_message_id_with_http_info(message_id, opts = {})
|
|
560
560
|
if @api_client.config.debugging
|
|
561
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
561
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#delete_messages_message_id ..."
|
|
562
562
|
end
|
|
563
563
|
|
|
564
564
|
# verify the required parameter 'message_id' is set
|
|
565
|
-
fail "Missing the required parameter 'message_id' when calling
|
|
565
|
+
fail "Missing the required parameter 'message_id' when calling delete_messages_message_id" if message_id.nil?
|
|
566
566
|
|
|
567
567
|
# resource path
|
|
568
568
|
path = "/api/v1/voicemail/messages/{messageId}".sub('{format}','json').sub('{' + 'messageId' + '}', message_id.to_s)
|
|
@@ -597,7 +597,7 @@ module PureCloud
|
|
|
597
597
|
:auth_names => auth_names,
|
|
598
598
|
:return_type => 'String')
|
|
599
599
|
if @api_client.config.debugging
|
|
600
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
600
|
+
@api_client.config.logger.debug "API called: VoicemailApi#delete_messages_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
601
601
|
end
|
|
602
602
|
return data, status_code, headers
|
|
603
603
|
end
|
|
@@ -608,8 +608,8 @@ module PureCloud
|
|
|
608
608
|
# @param [Hash] opts the optional parameters
|
|
609
609
|
# @option opts [String] :format_id The desired format (WEBM, WAV, etc.)
|
|
610
610
|
# @return [VoicemailMediaInfo]
|
|
611
|
-
def
|
|
612
|
-
data, status_code, headers =
|
|
611
|
+
def get_messages_message_id_media(message_id, opts = {})
|
|
612
|
+
data, status_code, headers = get_messages_message_id_media_with_http_info(message_id, opts)
|
|
613
613
|
return data
|
|
614
614
|
end
|
|
615
615
|
|
|
@@ -619,13 +619,13 @@ module PureCloud
|
|
|
619
619
|
# @param [Hash] opts the optional parameters
|
|
620
620
|
# @option opts [String] :format_id The desired format (WEBM, WAV, etc.)
|
|
621
621
|
# @return [Array<(VoicemailMediaInfo, Fixnum, Hash)>] VoicemailMediaInfo data, response status code and response headers
|
|
622
|
-
def
|
|
622
|
+
def get_messages_message_id_media_with_http_info(message_id, opts = {})
|
|
623
623
|
if @api_client.config.debugging
|
|
624
|
-
@api_client.config.logger.debug "Calling API: VoicemailApi#
|
|
624
|
+
@api_client.config.logger.debug "Calling API: VoicemailApi#get_messages_message_id_media ..."
|
|
625
625
|
end
|
|
626
626
|
|
|
627
627
|
# verify the required parameter 'message_id' is set
|
|
628
|
-
fail "Missing the required parameter 'message_id' when calling
|
|
628
|
+
fail "Missing the required parameter 'message_id' when calling get_messages_message_id_media" if message_id.nil?
|
|
629
629
|
|
|
630
630
|
if opts[:'format_id'] && !['WEBM', 'WAV'].include?(opts[:'format_id'])
|
|
631
631
|
fail 'invalid value for "format_id", must be one of WEBM, WAV'
|
|
@@ -665,7 +665,7 @@ module PureCloud
|
|
|
665
665
|
:auth_names => auth_names,
|
|
666
666
|
:return_type => 'VoicemailMediaInfo')
|
|
667
667
|
if @api_client.config.debugging
|
|
668
|
-
@api_client.config.logger.debug "API called: VoicemailApi#
|
|
668
|
+
@api_client.config.logger.debug "API called: VoicemailApi#get_messages_message_id_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
669
669
|
end
|
|
670
670
|
return data, status_code, headers
|
|
671
671
|
end
|
data/lib/purecloud/api_client.rb
CHANGED
|
@@ -17,7 +17,7 @@ module PureCloud
|
|
|
17
17
|
|
|
18
18
|
def initialize(config = Configuration.default)
|
|
19
19
|
@config = config
|
|
20
|
-
@user_agent = "
|
|
20
|
+
@user_agent = "PureCloud SDK/Ruby #{VERSION}"
|
|
21
21
|
@default_headers = {
|
|
22
22
|
'Content-Type' => "application/json",
|
|
23
23
|
'User-Agent' => @user_agent
|
|
@@ -2,43 +2,41 @@ require 'date'
|
|
|
2
2
|
|
|
3
3
|
module PureCloud
|
|
4
4
|
class Address
|
|
5
|
-
|
|
6
|
-
attr_accessor :id
|
|
5
|
+
attr_accessor :country
|
|
7
6
|
|
|
8
|
-
attr_accessor :
|
|
7
|
+
attr_accessor :a1
|
|
9
8
|
|
|
10
|
-
attr_accessor :
|
|
9
|
+
attr_accessor :a3
|
|
11
10
|
|
|
12
|
-
attr_accessor :
|
|
11
|
+
attr_accessor :rd
|
|
13
12
|
|
|
14
|
-
attr_accessor :
|
|
13
|
+
attr_accessor :hno
|
|
15
14
|
|
|
16
|
-
attr_accessor :
|
|
15
|
+
attr_accessor :loc
|
|
17
16
|
|
|
18
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :nam
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
attr_accessor :self_uri
|
|
19
|
+
attr_accessor :pc
|
|
22
20
|
|
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
22
|
def self.attribute_map
|
|
25
23
|
{
|
|
26
24
|
|
|
27
|
-
:'
|
|
25
|
+
:'country' => :'country',
|
|
28
26
|
|
|
29
|
-
:'
|
|
27
|
+
:'a1' => :'A1',
|
|
30
28
|
|
|
31
|
-
:'
|
|
29
|
+
:'a3' => :'A3',
|
|
32
30
|
|
|
33
|
-
:'
|
|
31
|
+
:'rd' => :'RD',
|
|
34
32
|
|
|
35
|
-
:'
|
|
33
|
+
:'hno' => :'HNO',
|
|
36
34
|
|
|
37
|
-
:'
|
|
35
|
+
:'loc' => :'LOC',
|
|
38
36
|
|
|
39
|
-
:'
|
|
37
|
+
:'nam' => :'NAM',
|
|
40
38
|
|
|
41
|
-
:'
|
|
39
|
+
:'pc' => :'PC'
|
|
42
40
|
|
|
43
41
|
}
|
|
44
42
|
end
|
|
@@ -46,14 +44,14 @@ module PureCloud
|
|
|
46
44
|
# Attribute type mapping.
|
|
47
45
|
def self.swagger_types
|
|
48
46
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
47
|
+
:'country' => :'String',
|
|
48
|
+
:'a1' => :'String',
|
|
49
|
+
:'a3' => :'String',
|
|
50
|
+
:'rd' => :'String',
|
|
51
|
+
:'hno' => :'String',
|
|
52
|
+
:'loc' => :'String',
|
|
53
|
+
:'nam' => :'String',
|
|
54
|
+
:'pc' => :'String'
|
|
57
55
|
|
|
58
56
|
}
|
|
59
57
|
end
|
|
@@ -65,36 +63,36 @@ module PureCloud
|
|
|
65
63
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
|
66
64
|
|
|
67
65
|
|
|
68
|
-
if attributes[:'
|
|
69
|
-
self.
|
|
66
|
+
if attributes[:'country']
|
|
67
|
+
self.country = attributes[:'country']
|
|
70
68
|
end
|
|
71
69
|
|
|
72
|
-
if attributes[:'
|
|
73
|
-
self.
|
|
70
|
+
if attributes[:'A1']
|
|
71
|
+
self.a1 = attributes[:'A1']
|
|
74
72
|
end
|
|
75
73
|
|
|
76
|
-
if attributes[:'
|
|
77
|
-
self.
|
|
74
|
+
if attributes[:'A3']
|
|
75
|
+
self.a3 = attributes[:'A3']
|
|
78
76
|
end
|
|
79
77
|
|
|
80
|
-
if attributes[:'
|
|
81
|
-
self.
|
|
78
|
+
if attributes[:'RD']
|
|
79
|
+
self.rd = attributes[:'RD']
|
|
82
80
|
end
|
|
83
81
|
|
|
84
|
-
if attributes[:'
|
|
85
|
-
self.
|
|
82
|
+
if attributes[:'HNO']
|
|
83
|
+
self.hno = attributes[:'HNO']
|
|
86
84
|
end
|
|
87
85
|
|
|
88
|
-
if attributes[:'
|
|
89
|
-
self.
|
|
86
|
+
if attributes[:'LOC']
|
|
87
|
+
self.loc = attributes[:'LOC']
|
|
90
88
|
end
|
|
91
89
|
|
|
92
|
-
if attributes[:'
|
|
93
|
-
self.
|
|
90
|
+
if attributes[:'NAM']
|
|
91
|
+
self.nam = attributes[:'NAM']
|
|
94
92
|
end
|
|
95
93
|
|
|
96
|
-
if attributes[:'
|
|
97
|
-
self.
|
|
94
|
+
if attributes[:'PC']
|
|
95
|
+
self.pc = attributes[:'PC']
|
|
98
96
|
end
|
|
99
97
|
|
|
100
98
|
end
|
|
@@ -103,14 +101,14 @@ module PureCloud
|
|
|
103
101
|
def ==(o)
|
|
104
102
|
return true if self.equal?(o)
|
|
105
103
|
self.class == o.class &&
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
country == o.country &&
|
|
105
|
+
a1 == o.a1 &&
|
|
106
|
+
a3 == o.a3 &&
|
|
107
|
+
rd == o.rd &&
|
|
108
|
+
hno == o.hno &&
|
|
109
|
+
loc == o.loc &&
|
|
110
|
+
nam == o.nam &&
|
|
111
|
+
pc == o.pc
|
|
114
112
|
end
|
|
115
113
|
|
|
116
114
|
# @see the `==` method
|
|
@@ -120,7 +118,7 @@ module PureCloud
|
|
|
120
118
|
|
|
121
119
|
# Calculate hash code according to all attributes.
|
|
122
120
|
def hash
|
|
123
|
-
[
|
|
121
|
+
[country, a1, a3, rd, hno, loc, nam, pc].hash
|
|
124
122
|
end
|
|
125
123
|
|
|
126
124
|
# build the object from hash
|