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.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +2 -2
  4. data/README.md +1 -7
  5. data/config-ruby.json +1 -1
  6. data/extensions/auth.rb +2 -2
  7. data/lib/purecloud.rb +110 -75
  8. data/lib/purecloud/api/architect_api.rb +3127 -74
  9. data/lib/purecloud/api/attributes_api.rb +33 -33
  10. data/lib/purecloud/api/authorization_api.rb +83 -83
  11. data/lib/purecloud/api/compliance_api.rb +5 -5
  12. data/lib/purecloud/api/configuration_api.rb +594 -397
  13. data/lib/purecloud/api/content_management_api.rb +183 -183
  14. data/lib/purecloud/api/conversations_api.rb +289 -159
  15. data/lib/purecloud/api/downloads_api.rb +6 -6
  16. data/lib/purecloud/api/external_contacts_api.rb +1693 -0
  17. data/lib/purecloud/api/fax_api.rb +24 -24
  18. data/lib/purecloud/api/geolocation_api.rb +14 -14
  19. data/lib/purecloud/api/greetings_api.rb +68 -68
  20. data/lib/purecloud/api/groups_api.rb +31 -20
  21. data/lib/purecloud/api/languages_api.rb +18 -11
  22. data/lib/purecloud/api/licensing_api.rb +5 -5
  23. data/lib/purecloud/api/locations_api.rb +11 -11
  24. data/lib/purecloud/api/notifications_api.rb +41 -41
  25. data/lib/purecloud/api/o_auth_api.rb +69 -69
  26. data/lib/purecloud/api/outbound_api.rb +505 -325
  27. data/lib/purecloud/api/presence_api.rb +65 -65
  28. data/lib/purecloud/api/quality_api.rb +66 -639
  29. data/lib/purecloud/api/recording_api.rb +1343 -0
  30. data/lib/purecloud/api/response_management_api.rb +687 -0
  31. data/lib/purecloud/api/routing_api.rb +224 -170
  32. data/lib/purecloud/api/scripts_api.rb +52 -52
  33. data/lib/purecloud/api/search_api.rb +5 -5
  34. data/lib/purecloud/api/stations_api.rb +8 -8
  35. data/lib/purecloud/api/telephony_providers_edge_api.rb +138 -138
  36. data/lib/purecloud/api/user_recordings_api.rb +29 -29
  37. data/lib/purecloud/api/users_api.rb +123 -123
  38. data/lib/purecloud/api/utilities_api.rb +71 -15
  39. data/lib/purecloud/api/voicemail_api.rb +42 -42
  40. data/lib/purecloud/api_client.rb +1 -1
  41. data/lib/purecloud/models/address.rb +49 -51
  42. data/lib/purecloud/models/attribute_filter_item.rb +177 -0
  43. data/lib/purecloud/models/automate_queue_member_entity_listing.rb +238 -0
  44. data/lib/purecloud/models/available_additional_service.rb +40 -1
  45. data/lib/purecloud/models/{topic_entity_listing.rb → available_topic_entity_listing.rb} +1 -1
  46. data/lib/purecloud/models/call.rb +36 -5
  47. data/lib/purecloud/models/{line_properties.rb → call_command.rb} +13 -3
  48. data/lib/purecloud/models/callback.rb +15 -4
  49. data/lib/purecloud/models/campaign.rb +219 -17
  50. data/lib/purecloud/models/campaign_progress.rb +186 -0
  51. data/lib/purecloud/models/channel_topic_entity_listing.rb +238 -0
  52. data/lib/purecloud/models/charge.rb +14 -4
  53. data/lib/purecloud/models/{attribute_value.rb → client_text_table_transform.rb} +52 -82
  54. data/lib/purecloud/models/contact.rb +1 -1
  55. data/lib/purecloud/models/contact_list.rb +111 -1
  56. data/lib/purecloud/models/contact_listing.rb +238 -0
  57. data/lib/purecloud/models/content_attribute_filter_item.rb +177 -0
  58. data/lib/purecloud/models/content_facet_filter_item.rb +1 -1
  59. data/lib/purecloud/models/content_query_request.rb +16 -4
  60. data/lib/purecloud/models/control.rb +221 -0
  61. data/lib/purecloud/models/{flow_activate_request.rb → control_options.rb} +18 -12
  62. data/lib/purecloud/models/create_callback_command.rb +200 -0
  63. data/lib/purecloud/models/discount.rb +220 -0
  64. data/lib/purecloud/models/document.rb +13 -1
  65. data/lib/purecloud/models/document_attribute.rb +158 -0
  66. data/lib/purecloud/models/document_update.rb +28 -16
  67. data/lib/purecloud/models/document_upload.rb +4 -16
  68. data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +238 -0
  69. data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +238 -0
  70. data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +1 -1
  71. data/lib/purecloud/models/edge_line.rb +1 -1
  72. data/lib/purecloud/models/edge_logs_job.rb +181 -0
  73. data/lib/purecloud/models/edge_logs_job_file.rb +243 -0
  74. data/lib/purecloud/models/edge_logs_job_request.rb +168 -0
  75. data/lib/purecloud/models/{backend_work_item_data_element.rb → edge_logs_job_response.rb} +16 -24
  76. data/lib/purecloud/models/{flow_lock_request.rb → edge_logs_job_upload_request.rb} +10 -12
  77. data/lib/purecloud/models/email.rb +15 -4
  78. data/lib/purecloud/models/endpoint.rb +1 -1
  79. data/lib/purecloud/models/{flow_associate_workspaces_request.rb → estimated_wait_time_predictions.rb} +10 -11
  80. data/lib/purecloud/models/external_contact.rb +320 -0
  81. data/lib/purecloud/models/external_organization.rb +306 -0
  82. data/lib/purecloud/models/external_organization_listing.rb +238 -0
  83. data/lib/purecloud/models/facet_filter_item.rb +1 -1
  84. data/lib/purecloud/models/flow_body.rb +1 -1
  85. data/lib/purecloud/models/flow_body_format.rb +10 -20
  86. data/lib/purecloud/models/flow_terminate_request.rb +3 -16
  87. data/lib/purecloud/models/form.rb +148 -0
  88. data/lib/purecloud/models/group.rb +11 -1
  89. data/lib/purecloud/models/health_check_info.rb +268 -0
  90. data/lib/purecloud/models/{body_2.rb → inline_response_200.rb} +1 -1
  91. data/lib/purecloud/models/integration_type.rb +209 -0
  92. data/lib/purecloud/models/integration_type_entity_listing.rb +238 -0
  93. data/lib/purecloud/models/key_rotation_schedule.rb +1 -0
  94. data/lib/purecloud/models/language.rb +41 -1
  95. data/lib/purecloud/models/line.rb +1 -1
  96. data/lib/purecloud/models/line_base.rb +1 -1
  97. data/lib/purecloud/models/media_policies.rb +169 -0
  98. data/lib/purecloud/models/media_policy.rb +171 -0
  99. data/lib/purecloud/models/note.rb +200 -0
  100. data/lib/purecloud/models/{user_station_resource.rb → note_listing.rb} +68 -58
  101. data/lib/purecloud/models/o_auth_client.rb +1 -1
  102. data/lib/purecloud/models/page.rb +2 -2
  103. data/lib/purecloud/models/{byte_buffer.rb → payment_method.rb} +48 -61
  104. data/lib/purecloud/models/payment_method_listing.rb +238 -0
  105. data/lib/purecloud/models/payment_token_provider.rb +180 -0
  106. data/lib/purecloud/models/phone.rb +1 -1
  107. data/lib/purecloud/models/phone_base.rb +1 -1
  108. data/lib/purecloud/models/phone_number.rb +198 -0
  109. data/lib/purecloud/models/phones_reboot.rb +14 -4
  110. data/lib/purecloud/models/policy.rb +14 -1
  111. data/lib/purecloud/models/prediction_results.rb +167 -0
  112. data/lib/purecloud/models/query_request.rb +16 -4
  113. data/lib/purecloud/models/queue_member_entity_listing.rb +1 -1
  114. data/lib/purecloud/models/quote.rb +13 -1
  115. data/lib/purecloud/models/recording_settings.rb +146 -0
  116. data/lib/purecloud/models/relationship.rb +201 -0
  117. data/lib/purecloud/models/relationship_listing.rb +238 -0
  118. data/lib/purecloud/models/report_schedule.rb +3 -2
  119. data/lib/purecloud/models/service_type.rb +12 -1
  120. data/lib/purecloud/models/social_expression.rb +25 -4
  121. data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +1 -1
  122. data/lib/purecloud/models/template.rb +1 -1
  123. data/lib/purecloud/models/text_table_transform_entity_listing.rb +1 -1
  124. data/lib/purecloud/models/ticker.rb +158 -0
  125. data/lib/purecloud/models/time_slot.rb +1 -0
  126. data/lib/purecloud/models/trunk_base.rb +1 -1
  127. data/lib/purecloud/models/vendor_connection_request.rb +166 -0
  128. data/lib/purecloud/models/video.rb +15 -4
  129. data/lib/purecloud/models/work_item_definition.rb +8 -10
  130. data/lib/purecloud/version.rb +1 -1
  131. data/ossindex.json +17 -0
  132. data/purecloud.gemspec +4 -3
  133. data/rakefile +3 -15
  134. data/spec/test.rb +6 -3
  135. data/swagger.json +1 -1
  136. data/swagger_template/api_client.mustache +304 -0
  137. data/swagger_template/base_object.mustache +90 -0
  138. data/{PureCloud.gemspec → swagger_template/gemspec.mustache} +12 -11
  139. data/version.json +1 -1
  140. metadata +76 -25
  141. data/lib/purecloud/api/analytics_api.rb +0 -1554
  142. data/lib/purecloud/api/orphaned_recordings_api.rb +0 -205
  143. 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 create_details(opts = {})
17
- data, status_code, headers = create_details_with_http_info(opts)
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 create_details_with_http_info(opts = {})
26
+ def post_details_with_http_info(opts = {})
27
27
  if @api_client.config.debugging
28
- @api_client.config.logger.debug "Calling API: UtilitiesApi#create_details ..."
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#create_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 create_addressvalidation(opts = {})
75
- data, status_code, headers = create_addressvalidation_with_http_info(opts)
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 create_addressvalidation_with_http_info(opts = {})
84
+ def post_addressvalidation_with_http_info(opts = {})
85
85
  if @api_client.config.debugging
86
- @api_client.config.logger.debug "Calling API: UtilitiesApi#create_addressvalidation ..."
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#create_addressvalidation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 get(opts = {})
132
- data, status_code, headers = get_with_http_info(opts)
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 get_with_http_info(opts = {})
140
+ def get_date_with_http_info(opts = {})
141
141
  if @api_client.config.debugging
142
- @api_client.config.logger.debug "Calling API: UtilitiesApi#get ..."
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#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 get_uservoicemailpolicies_user(user_id, opts = {})
17
- data, status_code, headers = get_uservoicemailpolicies_user_with_http_info(user_id, opts)
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 get_uservoicemailpolicies_user_with_http_info(user_id, opts = {})
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#get_uservoicemailpolicies_user ..."
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 get_uservoicemailpolicies_user" if user_id.nil?
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#get_uservoicemailpolicies_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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&#39;s voicemail policy
76
76
  # @param [Hash] opts the optional parameters
77
77
  # @return [VoicemailUserPolicy]
78
- def patch_uservoicemailpolicies_user(user_id, body, opts = {})
79
- data, status_code, headers = patch_uservoicemailpolicies_user_with_http_info(user_id, body, opts)
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&#39;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 patch_uservoicemailpolicies_user_with_http_info(user_id, body, opts = {})
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#patch_uservoicemailpolicies_user ..."
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 patch_uservoicemailpolicies_user" if user_id.nil?
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 patch_uservoicemailpolicies_user" if body.nil?
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#patch_uservoicemailpolicies_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 update_voicemailpolicy(opts = {})
200
- data, status_code, headers = update_voicemailpolicy_with_http_info(opts)
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 update_voicemailpolicy_with_http_info(opts = {})
209
+ def put_voicemailpolicy_with_http_info(opts = {})
210
210
  if @api_client.config.debugging
211
- @api_client.config.logger.debug "Calling API: VoicemailApi#update_voicemailpolicy ..."
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#update_voicemailpolicy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 get_message(message_id, opts = {})
426
- data, status_code, headers = get_message_with_http_info(message_id, opts)
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 get_message_with_http_info(message_id, opts = {})
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#get_message ..."
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 get_message" if message_id.nil?
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#get_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 update_message(message_id, opts = {})
488
- data, status_code, headers = update_message_with_http_info(message_id, opts)
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 update_message_with_http_info(message_id, opts = {})
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#update_message ..."
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 update_message" if message_id.nil?
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#update_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 delete_message(message_id, opts = {})
550
- data, status_code, headers = delete_message_with_http_info(message_id, opts)
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 delete_message_with_http_info(message_id, opts = {})
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#delete_message ..."
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 delete_message" if message_id.nil?
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#delete_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 get_message_media(message_id, opts = {})
612
- data, status_code, headers = get_message_media_with_http_info(message_id, opts)
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 get_message_media_with_http_info(message_id, opts = {})
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#get_message_media ..."
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 get_message_media" if message_id.nil?
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#get_message_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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
@@ -17,7 +17,7 @@ module PureCloud
17
17
 
18
18
  def initialize(config = Configuration.default)
19
19
  @config = config
20
- @user_agent = "ruby-swagger-#{VERSION}"
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
- # The globally unique identifier for the object.
6
- attr_accessor :id
5
+ attr_accessor :country
7
6
 
8
- attr_accessor :name
7
+ attr_accessor :a1
9
8
 
10
- attr_accessor :street
9
+ attr_accessor :a3
11
10
 
12
- attr_accessor :city
11
+ attr_accessor :rd
13
12
 
14
- attr_accessor :country_name
13
+ attr_accessor :hno
15
14
 
16
- attr_accessor :state_name
15
+ attr_accessor :loc
17
16
 
18
- attr_accessor :postal_code
17
+ attr_accessor :nam
19
18
 
20
- # The URI for this object
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
- :'id' => :'id',
25
+ :'country' => :'country',
28
26
 
29
- :'name' => :'name',
27
+ :'a1' => :'A1',
30
28
 
31
- :'street' => :'street',
29
+ :'a3' => :'A3',
32
30
 
33
- :'city' => :'city',
31
+ :'rd' => :'RD',
34
32
 
35
- :'country_name' => :'countryName',
33
+ :'hno' => :'HNO',
36
34
 
37
- :'state_name' => :'stateName',
35
+ :'loc' => :'LOC',
38
36
 
39
- :'postal_code' => :'postalCode',
37
+ :'nam' => :'NAM',
40
38
 
41
- :'self_uri' => :'selfUri'
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
- :'id' => :'String',
50
- :'name' => :'String',
51
- :'street' => :'String',
52
- :'city' => :'String',
53
- :'country_name' => :'String',
54
- :'state_name' => :'String',
55
- :'postal_code' => :'String',
56
- :'self_uri' => :'String'
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[:'id']
69
- self.id = attributes[:'id']
66
+ if attributes[:'country']
67
+ self.country = attributes[:'country']
70
68
  end
71
69
 
72
- if attributes[:'name']
73
- self.name = attributes[:'name']
70
+ if attributes[:'A1']
71
+ self.a1 = attributes[:'A1']
74
72
  end
75
73
 
76
- if attributes[:'street']
77
- self.street = attributes[:'street']
74
+ if attributes[:'A3']
75
+ self.a3 = attributes[:'A3']
78
76
  end
79
77
 
80
- if attributes[:'city']
81
- self.city = attributes[:'city']
78
+ if attributes[:'RD']
79
+ self.rd = attributes[:'RD']
82
80
  end
83
81
 
84
- if attributes[:'countryName']
85
- self.country_name = attributes[:'countryName']
82
+ if attributes[:'HNO']
83
+ self.hno = attributes[:'HNO']
86
84
  end
87
85
 
88
- if attributes[:'stateName']
89
- self.state_name = attributes[:'stateName']
86
+ if attributes[:'LOC']
87
+ self.loc = attributes[:'LOC']
90
88
  end
91
89
 
92
- if attributes[:'postalCode']
93
- self.postal_code = attributes[:'postalCode']
90
+ if attributes[:'NAM']
91
+ self.nam = attributes[:'NAM']
94
92
  end
95
93
 
96
- if attributes[:'selfUri']
97
- self.self_uri = attributes[:'selfUri']
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
- id == o.id &&
107
- name == o.name &&
108
- street == o.street &&
109
- city == o.city &&
110
- country_name == o.country_name &&
111
- state_name == o.state_name &&
112
- postal_code == o.postal_code &&
113
- self_uri == o.self_uri
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
- [id, name, street, city, country_name, state_name, postal_code, self_uri].hash
121
+ [country, a1, a3, rd, hno, loc, nam, pc].hash
124
122
  end
125
123
 
126
124
  # build the object from hash