bandwidth-sdk 17.0.1 → 17.1.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.lock +2 -2
- data/README.md +18 -0
- data/bandwidth-sdk.gemspec +1 -2
- data/bandwidth.yml +7 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +198 -387
- data/coverage/index.html +5842 -7703
- data/custom_templates/README.mustache +4 -1
- data/custom_templates/api_client.mustache +254 -0
- data/custom_templates/configuration.mustache +545 -0
- data/custom_templates/gem.mustache +2 -0
- data/docs/CallsApi.md +20 -5
- data/docs/ConferencesApi.md +36 -9
- data/docs/MFAApi.md +12 -3
- data/docs/MediaApi.md +16 -4
- data/docs/MessagesApi.md +8 -2
- data/docs/MultiChannelApi.md +4 -1
- data/docs/PhoneNumberLookupApi.md +12 -3
- data/docs/RecordingsApi.md +40 -10
- data/docs/StatisticsApi.md +4 -1
- data/docs/TollFreeVerificationApi.md +36 -9
- data/docs/TranscriptionsApi.md +12 -3
- data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
- data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
- data/lib/bandwidth-sdk/api/media_api.rb +5 -5
- data/lib/bandwidth-sdk/api/messages_api.rb +3 -3
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +2 -2
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
- data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
- data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
- data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +13 -13
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +9 -5
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/api_model_base.rb +88 -0
- data/lib/bandwidth-sdk/configuration.rb +50 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +11 -78
- data/lib/bandwidth-sdk/models/additional_denial_reason.rb +41 -78
- data/lib/bandwidth-sdk/models/address.rb +23 -90
- data/lib/bandwidth-sdk/models/answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/blocked_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/callback.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +11 -78
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/contact.rb +19 -86
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/create_call.rb +41 -78
- data/lib/bandwidth-sdk/models/create_call_response.rb +81 -78
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/diversion.rb +11 -78
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/error.rb +11 -78
- data/lib/bandwidth-sdk/models/error_object.rb +41 -78
- data/lib/bandwidth-sdk/models/error_source.rb +11 -78
- data/lib/bandwidth-sdk/models/failure_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/field_error.rb +11 -78
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/link.rb +11 -78
- data/lib/bandwidth-sdk/models/link_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/links_object.rb +11 -78
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_response.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_result.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +11 -78
- data/lib/bandwidth-sdk/models/media.rb +11 -78
- data/lib/bandwidth-sdk/models/message.rb +11 -78
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.rb +31 -78
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +3 -4
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +41 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +51 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +61 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +41 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +21 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +51 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object_all_of_content.rb +3 -4
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +61 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +3 -4
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +3 -4
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +51 -78
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +61 -78
- data/lib/bandwidth-sdk/models/multi_channel_error.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +21 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +41 -78
- data/lib/bandwidth-sdk/models/opt_in_workflow.rb +25 -82
- data/lib/bandwidth-sdk/models/page_info.rb +11 -78
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/product_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +31 -78
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_card_content.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_location_response.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +3 -4
- data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/sms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/status_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +6 -6
- data/lib/bandwidth-sdk/models/stir_shaken.rb +11 -78
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/telephone_number.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_error.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_status.rb +13 -80
- data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +21 -88
- data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +11 -78
- data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call_recording.rb +21 -78
- data/lib/bandwidth-sdk/models/update_conference.rb +11 -78
- data/lib/bandwidth-sdk/models/update_conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verification_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_update_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_request.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_api_error.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription.rb +13 -80
- data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +15 -82
- data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +21 -78
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +2 -1
- data/openapitools.json +1 -1
- data/spec/smoke/calls_api_spec.rb +50 -76
- data/spec/smoke/conferences_api_spec.rb +7 -5
- data/spec/smoke/media_api_spec.rb +4 -2
- data/spec/smoke/messages_api_spec.rb +9 -4
- data/spec/smoke/mfa_api_spec.rb +9 -4
- data/spec/smoke/multi_channel_api_spec.rb +4 -2
- data/spec/smoke/phone_number_lookup_api_spec.rb +6 -4
- data/spec/smoke/recordings_api_spec.rb +7 -33
- data/spec/smoke/statistics_api_spec.rb +16 -8
- data/spec/smoke/toll_free_verification_api_spec.rb +6 -4
- data/spec/smoke/transcriptions_api_spec.rb +7 -5
- data/spec/spec_helper.rb +2 -0
- data/spec/unit/models/verify_code_request_spec.rb +1 -1
- metadata +5 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Bandwidth
|
|
17
|
-
class UpdateCallRecording
|
|
17
|
+
class UpdateCallRecording < ApiModelBase
|
|
18
18
|
attr_accessor :state
|
|
19
19
|
|
|
20
20
|
class EnumAttributeValidator
|
|
@@ -46,9 +46,14 @@ module Bandwidth
|
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# Returns attribute mapping this model knows about
|
|
50
|
+
def self.acceptable_attribute_map
|
|
51
|
+
attribute_map
|
|
52
|
+
end
|
|
53
|
+
|
|
49
54
|
# Returns all the JSON keys this model knows about
|
|
50
55
|
def self.acceptable_attributes
|
|
51
|
-
|
|
56
|
+
acceptable_attribute_map.values
|
|
52
57
|
end
|
|
53
58
|
|
|
54
59
|
# Attribute type mapping.
|
|
@@ -72,9 +77,10 @@ module Bandwidth
|
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
-
if (!
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateCallRecording`. Please check the name to make sure it's valid. List of attributes: " +
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateCallRecording`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
84
|
end
|
|
79
85
|
h[k.to_sym] = v
|
|
80
86
|
}
|
|
@@ -106,6 +112,16 @@ module Bandwidth
|
|
|
106
112
|
true
|
|
107
113
|
end
|
|
108
114
|
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param [Object] state Value to be assigned
|
|
117
|
+
def state=(state)
|
|
118
|
+
if state.nil?
|
|
119
|
+
fail ArgumentError, 'state cannot be nil'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
@state = state
|
|
123
|
+
end
|
|
124
|
+
|
|
109
125
|
# Checks equality by comparing each attribute.
|
|
110
126
|
# @param [Object] Object to be compared
|
|
111
127
|
def ==(o)
|
|
@@ -149,61 +165,6 @@ module Bandwidth
|
|
|
149
165
|
new(transformed_hash)
|
|
150
166
|
end
|
|
151
167
|
|
|
152
|
-
# Deserializes the data based on type
|
|
153
|
-
# @param string type Data type
|
|
154
|
-
# @param string value Value to be deserialized
|
|
155
|
-
# @return [Object] Deserialized data
|
|
156
|
-
def self._deserialize(type, value)
|
|
157
|
-
case type.to_sym
|
|
158
|
-
when :Time
|
|
159
|
-
Time.parse(value)
|
|
160
|
-
when :Date
|
|
161
|
-
Date.parse(value)
|
|
162
|
-
when :String
|
|
163
|
-
value.to_s
|
|
164
|
-
when :Integer
|
|
165
|
-
value.to_i
|
|
166
|
-
when :Float
|
|
167
|
-
value.to_f
|
|
168
|
-
when :Boolean
|
|
169
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
170
|
-
true
|
|
171
|
-
else
|
|
172
|
-
false
|
|
173
|
-
end
|
|
174
|
-
when :Object
|
|
175
|
-
# generic object (usually a Hash), return directly
|
|
176
|
-
value
|
|
177
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
178
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
179
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
180
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
181
|
-
k_type = Regexp.last_match[:k_type]
|
|
182
|
-
v_type = Regexp.last_match[:v_type]
|
|
183
|
-
{}.tap do |hash|
|
|
184
|
-
value.each do |k, v|
|
|
185
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
else # model
|
|
189
|
-
# models (e.g. Pet) or oneOf
|
|
190
|
-
klass = Bandwidth.const_get(type)
|
|
191
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# Returns the string representation of the object
|
|
196
|
-
# @return [String] String presentation of the object
|
|
197
|
-
def to_s
|
|
198
|
-
to_hash.to_s
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
202
|
-
# @return [Hash] Returns the object in the form of hash
|
|
203
|
-
def to_body
|
|
204
|
-
to_hash
|
|
205
|
-
end
|
|
206
|
-
|
|
207
168
|
# Returns the object in the form of hash
|
|
208
169
|
# @return [Hash] Returns the object in the form of hash
|
|
209
170
|
def to_hash
|
|
@@ -219,23 +180,5 @@ module Bandwidth
|
|
|
219
180
|
end
|
|
220
181
|
hash
|
|
221
182
|
end
|
|
222
|
-
|
|
223
|
-
# Outputs non-array value in the form of hash
|
|
224
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
225
|
-
# @param [Object] value Any valid value
|
|
226
|
-
# @return [Hash] Returns the value in the form of hash
|
|
227
|
-
def _to_hash(value)
|
|
228
|
-
if value.is_a?(Array)
|
|
229
|
-
value.compact.map { |v| _to_hash(v) }
|
|
230
|
-
elsif value.is_a?(Hash)
|
|
231
|
-
{}.tap do |hash|
|
|
232
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
233
|
-
end
|
|
234
|
-
elsif value.respond_to? :to_hash
|
|
235
|
-
value.to_hash
|
|
236
|
-
else
|
|
237
|
-
value
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
183
|
end
|
|
241
184
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Bandwidth
|
|
17
|
-
class UpdateConference
|
|
17
|
+
class UpdateConference < ApiModelBase
|
|
18
18
|
attr_accessor :status
|
|
19
19
|
|
|
20
20
|
# The URL to send the [conferenceRedirect](/docs/voice/webhooks/conferenceRedirect) event which will provide new BXML. Not allowed if `state` is `completed`, but required if `state` is `active`.
|
|
@@ -76,9 +76,14 @@ module Bandwidth
|
|
|
76
76
|
}
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
# Returns attribute mapping this model knows about
|
|
80
|
+
def self.acceptable_attribute_map
|
|
81
|
+
attribute_map
|
|
82
|
+
end
|
|
83
|
+
|
|
79
84
|
# Returns all the JSON keys this model knows about
|
|
80
85
|
def self.acceptable_attributes
|
|
81
|
-
|
|
86
|
+
acceptable_attribute_map.values
|
|
82
87
|
end
|
|
83
88
|
|
|
84
89
|
# Attribute type mapping.
|
|
@@ -119,9 +124,10 @@ module Bandwidth
|
|
|
119
124
|
end
|
|
120
125
|
|
|
121
126
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
127
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
122
128
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
123
|
-
if (!
|
|
124
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateConference`. Please check the name to make sure it's valid. List of attributes: " +
|
|
129
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
130
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateConference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
125
131
|
end
|
|
126
132
|
h[k.to_sym] = v
|
|
127
133
|
}
|
|
@@ -295,61 +301,6 @@ module Bandwidth
|
|
|
295
301
|
new(transformed_hash)
|
|
296
302
|
end
|
|
297
303
|
|
|
298
|
-
# Deserializes the data based on type
|
|
299
|
-
# @param string type Data type
|
|
300
|
-
# @param string value Value to be deserialized
|
|
301
|
-
# @return [Object] Deserialized data
|
|
302
|
-
def self._deserialize(type, value)
|
|
303
|
-
case type.to_sym
|
|
304
|
-
when :Time
|
|
305
|
-
Time.parse(value)
|
|
306
|
-
when :Date
|
|
307
|
-
Date.parse(value)
|
|
308
|
-
when :String
|
|
309
|
-
value.to_s
|
|
310
|
-
when :Integer
|
|
311
|
-
value.to_i
|
|
312
|
-
when :Float
|
|
313
|
-
value.to_f
|
|
314
|
-
when :Boolean
|
|
315
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
316
|
-
true
|
|
317
|
-
else
|
|
318
|
-
false
|
|
319
|
-
end
|
|
320
|
-
when :Object
|
|
321
|
-
# generic object (usually a Hash), return directly
|
|
322
|
-
value
|
|
323
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
324
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
325
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
326
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
327
|
-
k_type = Regexp.last_match[:k_type]
|
|
328
|
-
v_type = Regexp.last_match[:v_type]
|
|
329
|
-
{}.tap do |hash|
|
|
330
|
-
value.each do |k, v|
|
|
331
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
else # model
|
|
335
|
-
# models (e.g. Pet) or oneOf
|
|
336
|
-
klass = Bandwidth.const_get(type)
|
|
337
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
338
|
-
end
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
# Returns the string representation of the object
|
|
342
|
-
# @return [String] String presentation of the object
|
|
343
|
-
def to_s
|
|
344
|
-
to_hash.to_s
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
348
|
-
# @return [Hash] Returns the object in the form of hash
|
|
349
|
-
def to_body
|
|
350
|
-
to_hash
|
|
351
|
-
end
|
|
352
|
-
|
|
353
304
|
# Returns the object in the form of hash
|
|
354
305
|
# @return [Hash] Returns the object in the form of hash
|
|
355
306
|
def to_hash
|
|
@@ -365,23 +316,5 @@ module Bandwidth
|
|
|
365
316
|
end
|
|
366
317
|
hash
|
|
367
318
|
end
|
|
368
|
-
|
|
369
|
-
# Outputs non-array value in the form of hash
|
|
370
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
371
|
-
# @param [Object] value Any valid value
|
|
372
|
-
# @return [Hash] Returns the value in the form of hash
|
|
373
|
-
def _to_hash(value)
|
|
374
|
-
if value.is_a?(Array)
|
|
375
|
-
value.compact.map { |v| _to_hash(v) }
|
|
376
|
-
elsif value.is_a?(Hash)
|
|
377
|
-
{}.tap do |hash|
|
|
378
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
379
|
-
end
|
|
380
|
-
elsif value.respond_to? :to_hash
|
|
381
|
-
value.to_hash
|
|
382
|
-
else
|
|
383
|
-
value
|
|
384
|
-
end
|
|
385
|
-
end
|
|
386
319
|
end
|
|
387
320
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Bandwidth
|
|
17
|
-
class UpdateConferenceMember
|
|
17
|
+
class UpdateConferenceMember < ApiModelBase
|
|
18
18
|
# Whether or not this member is currently muted. Members who are muted are still able to hear other participants. Updates this member's mute status. Has no effect if omitted.
|
|
19
19
|
attr_accessor :mute
|
|
20
20
|
|
|
@@ -33,9 +33,14 @@ module Bandwidth
|
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
36
41
|
# Returns all the JSON keys this model knows about
|
|
37
42
|
def self.acceptable_attributes
|
|
38
|
-
|
|
43
|
+
acceptable_attribute_map.values
|
|
39
44
|
end
|
|
40
45
|
|
|
41
46
|
# Attribute type mapping.
|
|
@@ -62,9 +67,10 @@ module Bandwidth
|
|
|
62
67
|
end
|
|
63
68
|
|
|
64
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
-
if (!
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateConferenceMember`. Please check the name to make sure it's valid. List of attributes: " +
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::UpdateConferenceMember`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
74
|
end
|
|
69
75
|
h[k.to_sym] = v
|
|
70
76
|
}
|
|
@@ -144,61 +150,6 @@ module Bandwidth
|
|
|
144
150
|
new(transformed_hash)
|
|
145
151
|
end
|
|
146
152
|
|
|
147
|
-
# Deserializes the data based on type
|
|
148
|
-
# @param string type Data type
|
|
149
|
-
# @param string value Value to be deserialized
|
|
150
|
-
# @return [Object] Deserialized data
|
|
151
|
-
def self._deserialize(type, value)
|
|
152
|
-
case type.to_sym
|
|
153
|
-
when :Time
|
|
154
|
-
Time.parse(value)
|
|
155
|
-
when :Date
|
|
156
|
-
Date.parse(value)
|
|
157
|
-
when :String
|
|
158
|
-
value.to_s
|
|
159
|
-
when :Integer
|
|
160
|
-
value.to_i
|
|
161
|
-
when :Float
|
|
162
|
-
value.to_f
|
|
163
|
-
when :Boolean
|
|
164
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
-
true
|
|
166
|
-
else
|
|
167
|
-
false
|
|
168
|
-
end
|
|
169
|
-
when :Object
|
|
170
|
-
# generic object (usually a Hash), return directly
|
|
171
|
-
value
|
|
172
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
-
k_type = Regexp.last_match[:k_type]
|
|
177
|
-
v_type = Regexp.last_match[:v_type]
|
|
178
|
-
{}.tap do |hash|
|
|
179
|
-
value.each do |k, v|
|
|
180
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
else # model
|
|
184
|
-
# models (e.g. Pet) or oneOf
|
|
185
|
-
klass = Bandwidth.const_get(type)
|
|
186
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Returns the string representation of the object
|
|
191
|
-
# @return [String] String presentation of the object
|
|
192
|
-
def to_s
|
|
193
|
-
to_hash.to_s
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
|
198
|
-
def to_body
|
|
199
|
-
to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
153
|
# Returns the object in the form of hash
|
|
203
154
|
# @return [Hash] Returns the object in the form of hash
|
|
204
155
|
def to_hash
|
|
@@ -214,23 +165,5 @@ module Bandwidth
|
|
|
214
165
|
end
|
|
215
166
|
hash
|
|
216
167
|
end
|
|
217
|
-
|
|
218
|
-
# Outputs non-array value in the form of hash
|
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
-
# @param [Object] value Any valid value
|
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
|
222
|
-
def _to_hash(value)
|
|
223
|
-
if value.is_a?(Array)
|
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
|
225
|
-
elsif value.is_a?(Hash)
|
|
226
|
-
{}.tap do |hash|
|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
-
end
|
|
229
|
-
elsif value.respond_to? :to_hash
|
|
230
|
-
value.to_hash
|
|
231
|
-
else
|
|
232
|
-
value
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
168
|
end
|
|
236
169
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Bandwidth
|
|
17
|
-
class VerificationDenialWebhook
|
|
17
|
+
class VerificationDenialWebhook < ApiModelBase
|
|
18
18
|
# User's account ID.
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
@@ -60,9 +60,14 @@ module Bandwidth
|
|
|
60
60
|
}
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
# Returns attribute mapping this model knows about
|
|
64
|
+
def self.acceptable_attribute_map
|
|
65
|
+
attribute_map
|
|
66
|
+
end
|
|
67
|
+
|
|
63
68
|
# Returns all the JSON keys this model knows about
|
|
64
69
|
def self.acceptable_attributes
|
|
65
|
-
|
|
70
|
+
acceptable_attribute_map.values
|
|
66
71
|
end
|
|
67
72
|
|
|
68
73
|
# Attribute type mapping.
|
|
@@ -95,9 +100,10 @@ module Bandwidth
|
|
|
95
100
|
end
|
|
96
101
|
|
|
97
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
103
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
98
104
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
99
|
-
if (!
|
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::VerificationDenialWebhook`. Please check the name to make sure it's valid. List of attributes: " +
|
|
105
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::VerificationDenialWebhook`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
101
107
|
end
|
|
102
108
|
h[k.to_sym] = v
|
|
103
109
|
}
|
|
@@ -157,7 +163,7 @@ module Bandwidth
|
|
|
157
163
|
end
|
|
158
164
|
|
|
159
165
|
if !@phone_number.nil? && @phone_number.to_s.length < 12
|
|
160
|
-
invalid_properties.push('invalid value for "phone_number", the character length must be
|
|
166
|
+
invalid_properties.push('invalid value for "phone_number", the character length must be greater than or equal to 12.')
|
|
161
167
|
end
|
|
162
168
|
|
|
163
169
|
pattern = Regexp.new(/^\+1(800|833|844|855|866|877|888)[2-9]\d{6}$/)
|
|
@@ -190,7 +196,7 @@ module Bandwidth
|
|
|
190
196
|
end
|
|
191
197
|
|
|
192
198
|
if phone_number.to_s.length < 12
|
|
193
|
-
fail ArgumentError, 'invalid value for "phone_number", the character length must be
|
|
199
|
+
fail ArgumentError, 'invalid value for "phone_number", the character length must be greater than or equal to 12.'
|
|
194
200
|
end
|
|
195
201
|
|
|
196
202
|
pattern = Regexp.new(/^\+1(800|833|844|855|866|877|888)[2-9]\d{6}$/)
|
|
@@ -253,61 +259,6 @@ module Bandwidth
|
|
|
253
259
|
new(transformed_hash)
|
|
254
260
|
end
|
|
255
261
|
|
|
256
|
-
# Deserializes the data based on type
|
|
257
|
-
# @param string type Data type
|
|
258
|
-
# @param string value Value to be deserialized
|
|
259
|
-
# @return [Object] Deserialized data
|
|
260
|
-
def self._deserialize(type, value)
|
|
261
|
-
case type.to_sym
|
|
262
|
-
when :Time
|
|
263
|
-
Time.parse(value)
|
|
264
|
-
when :Date
|
|
265
|
-
Date.parse(value)
|
|
266
|
-
when :String
|
|
267
|
-
value.to_s
|
|
268
|
-
when :Integer
|
|
269
|
-
value.to_i
|
|
270
|
-
when :Float
|
|
271
|
-
value.to_f
|
|
272
|
-
when :Boolean
|
|
273
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
274
|
-
true
|
|
275
|
-
else
|
|
276
|
-
false
|
|
277
|
-
end
|
|
278
|
-
when :Object
|
|
279
|
-
# generic object (usually a Hash), return directly
|
|
280
|
-
value
|
|
281
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
282
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
283
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
284
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
285
|
-
k_type = Regexp.last_match[:k_type]
|
|
286
|
-
v_type = Regexp.last_match[:v_type]
|
|
287
|
-
{}.tap do |hash|
|
|
288
|
-
value.each do |k, v|
|
|
289
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
else # model
|
|
293
|
-
# models (e.g. Pet) or oneOf
|
|
294
|
-
klass = Bandwidth.const_get(type)
|
|
295
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
296
|
-
end
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
# Returns the string representation of the object
|
|
300
|
-
# @return [String] String presentation of the object
|
|
301
|
-
def to_s
|
|
302
|
-
to_hash.to_s
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
306
|
-
# @return [Hash] Returns the object in the form of hash
|
|
307
|
-
def to_body
|
|
308
|
-
to_hash
|
|
309
|
-
end
|
|
310
|
-
|
|
311
262
|
# Returns the object in the form of hash
|
|
312
263
|
# @return [Hash] Returns the object in the form of hash
|
|
313
264
|
def to_hash
|
|
@@ -323,23 +274,5 @@ module Bandwidth
|
|
|
323
274
|
end
|
|
324
275
|
hash
|
|
325
276
|
end
|
|
326
|
-
|
|
327
|
-
# Outputs non-array value in the form of hash
|
|
328
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
329
|
-
# @param [Object] value Any valid value
|
|
330
|
-
# @return [Hash] Returns the value in the form of hash
|
|
331
|
-
def _to_hash(value)
|
|
332
|
-
if value.is_a?(Array)
|
|
333
|
-
value.compact.map { |v| _to_hash(v) }
|
|
334
|
-
elsif value.is_a?(Hash)
|
|
335
|
-
{}.tap do |hash|
|
|
336
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
337
|
-
end
|
|
338
|
-
elsif value.respond_to? :to_hash
|
|
339
|
-
value.to_hash
|
|
340
|
-
else
|
|
341
|
-
value
|
|
342
|
-
end
|
|
343
|
-
end
|
|
344
277
|
end
|
|
345
278
|
end
|