twilio-api-sdk 1.0.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 +7 -0
- data/LICENSE +28 -0
- data/README.md +213 -0
- data/bin/console +15 -0
- data/lib/twilio_ap_is/api_helper.rb +10 -0
- data/lib/twilio_ap_is/apis/accounts_v1_auth_token_promotion_api.rb +27 -0
- data/lib/twilio_ap_is/apis/accounts_v1_aws_api.rb +137 -0
- data/lib/twilio_ap_is/apis/accounts_v1_bulk_consents_api.rb +41 -0
- data/lib/twilio_ap_is/apis/accounts_v1_bulk_contacts_api.rb +36 -0
- data/lib/twilio_ap_is/apis/accounts_v1_messaging_geopermissions_api.rb +54 -0
- data/lib/twilio_ap_is/apis/accounts_v1_public_key_api.rb +136 -0
- data/lib/twilio_ap_is/apis/accounts_v1_safelist_api.rb +69 -0
- data/lib/twilio_ap_is/apis/accounts_v1_secondary_auth_token_api.rb +39 -0
- data/lib/twilio_ap_is/apis/base_api.rb +67 -0
- data/lib/twilio_ap_is/apis/chat_v3_channel_api.rb +51 -0
- data/lib/twilio_ap_is/apis/conversations_v1_address_configuration_api.rb +218 -0
- data/lib/twilio_ap_is/apis/conversations_v1_binding_api.rb +116 -0
- data/lib/twilio_ap_is/apis/conversations_v1_configuration_api.rb +133 -0
- data/lib/twilio_ap_is/apis/conversations_v1_conversation_api.rb +550 -0
- data/lib/twilio_ap_is/apis/conversations_v1_conversation_with_participants_api.rb +182 -0
- data/lib/twilio_ap_is/apis/conversations_v1_credential_api.rb +189 -0
- data/lib/twilio_ap_is/apis/conversations_v1_delivery_receipt_api.rb +183 -0
- data/lib/twilio_ap_is/apis/conversations_v1_message_api.rb +497 -0
- data/lib/twilio_ap_is/apis/conversations_v1_notification_api.rb +124 -0
- data/lib/twilio_ap_is/apis/conversations_v1_participant_api.rb +546 -0
- data/lib/twilio_ap_is/apis/conversations_v1_participant_conversation_api.rb +99 -0
- data/lib/twilio_ap_is/apis/conversations_v1_role_api.rb +325 -0
- data/lib/twilio_ap_is/apis/conversations_v1_service_api.rb +98 -0
- data/lib/twilio_ap_is/apis/conversations_v1_user_api.rb +364 -0
- data/lib/twilio_ap_is/apis/conversations_v1_user_conversation_api.rb +335 -0
- data/lib/twilio_ap_is/apis/conversations_v1_webhook_api.rb +561 -0
- data/lib/twilio_ap_is/apis/notify_v1_binding_api.rb +186 -0
- data/lib/twilio_ap_is/apis/notify_v1_credential_api.rb +183 -0
- data/lib/twilio_ap_is/apis/notify_v1_notification_api.rb +174 -0
- data/lib/twilio_ap_is/apis/notify_v1_service_api.rb +262 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_activity_api.rb +177 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_event_api.rb +125 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_api.rb +310 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_channel_api.rb +173 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queue_api.rb +232 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queue_bulk_real_time_statistics_api.rb +36 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queue_cumulative_statistics_api.rb +63 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queue_real_time_statistics_api.rb +41 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queue_statistics_api.rb +63 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_queues_statistics_api.rb +72 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_task_reservation_api.rb +396 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_worker_api.rb +232 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_worker_channel_api.rb +126 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_worker_reservation_api.rb +385 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_worker_statistics_api.rb +57 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workers_cumulative_statistics_api.rb +51 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workers_real_time_statistics_api.rb +35 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workers_statistics_api.rb +63 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workflow_api.rb +213 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workflow_cumulative_statistics_api.rb +68 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workflow_real_time_statistics_api.rb +41 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workflow_statistics_api.rb +67 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workspace_api.rb +225 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workspace_cumulative_statistics_api.rb +62 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workspace_real_time_statistics_api.rb +35 -0
- data/lib/twilio_ap_is/apis/taskrouter_v1_workspace_statistics_api.rb +61 -0
- data/lib/twilio_ap_is/apis/verify_v2_service_api.rb +178 -0
- data/lib/twilio_ap_is/apis/verify_v2_verification_api.rb +143 -0
- data/lib/twilio_ap_is/apis/verify_v2_verification_check_api.rb +61 -0
- data/lib/twilio_ap_is/client.rb +417 -0
- data/lib/twilio_ap_is/configuration.rb +187 -0
- data/lib/twilio_ap_is/exceptions/api_exception.rb +21 -0
- data/lib/twilio_ap_is/exceptions/v2_services_verifications429_error_exception.rb +63 -0
- data/lib/twilio_ap_is/http/api_response.rb +19 -0
- data/lib/twilio_ap_is/http/auth/basic_auth.rb +62 -0
- data/lib/twilio_ap_is/http/http_call_back.rb +10 -0
- data/lib/twilio_ap_is/http/http_method_enum.rb +10 -0
- data/lib/twilio_ap_is/http/http_request.rb +10 -0
- data/lib/twilio_ap_is/http/http_response.rb +10 -0
- data/lib/twilio_ap_is/http/proxy_settings.rb +22 -0
- data/lib/twilio_ap_is/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/twilio_ap_is/logging/sdk_logger.rb +17 -0
- data/lib/twilio_ap_is/models/access_token.rb +188 -0
- data/lib/twilio_ap_is/models/access_token_enum_factor_types.rb +26 -0
- data/lib/twilio_ap_is/models/activity.rb +189 -0
- data/lib/twilio_ap_is/models/auth_token_promotion.rb +142 -0
- data/lib/twilio_ap_is/models/base_model.rb +110 -0
- data/lib/twilio_ap_is/models/binding.rb +269 -0
- data/lib/twilio_ap_is/models/binding_binding_type.rb +53 -0
- data/lib/twilio_ap_is/models/bucket.rb +186 -0
- data/lib/twilio_ap_is/models/bulk_consents.rb +83 -0
- data/lib/twilio_ap_is/models/bulk_contacts.rb +83 -0
- data/lib/twilio_ap_is/models/challenge.rb +317 -0
- data/lib/twilio_ap_is/models/challenge_enum_challenge_reasons.rb +41 -0
- data/lib/twilio_ap_is/models/challenge_enum_challenge_statuses.rb +45 -0
- data/lib/twilio_ap_is/models/challenge_enum_factor_types.rb +41 -0
- data/lib/twilio_ap_is/models/channel.rb +249 -0
- data/lib/twilio_ap_is/models/channel_channel_type.rb +36 -0
- data/lib/twilio_ap_is/models/channel_webhook_enabled_type.rb +36 -0
- data/lib/twilio_ap_is/models/configuration.rb +164 -0
- data/lib/twilio_ap_is/models/configuration_address.rb +199 -0
- data/lib/twilio_ap_is/models/configuration_address_auto_creation_type.rb +40 -0
- data/lib/twilio_ap_is/models/configuration_address_method.rb +36 -0
- data/lib/twilio_ap_is/models/configuration_address_type.rb +60 -0
- data/lib/twilio_ap_is/models/configuration_webhook.rb +154 -0
- data/lib/twilio_ap_is/models/configuration_webhook_method.rb +46 -0
- data/lib/twilio_ap_is/models/configuration_webhook_target.rb +37 -0
- data/lib/twilio_ap_is/models/conversation.rb +264 -0
- data/lib/twilio_ap_is/models/conversation_message.rb +268 -0
- data/lib/twilio_ap_is/models/conversation_message_order_type.rb +36 -0
- data/lib/twilio_ap_is/models/conversation_message_receipt.rb +219 -0
- data/lib/twilio_ap_is/models/conversation_message_receipt_delivery_status.rb +49 -0
- data/lib/twilio_ap_is/models/conversation_participant.rb +240 -0
- data/lib/twilio_ap_is/models/conversation_scoped_webhook.rb +178 -0
- data/lib/twilio_ap_is/models/conversation_scoped_webhook_method.rb +36 -0
- data/lib/twilio_ap_is/models/conversation_scoped_webhook_target.rb +40 -0
- data/lib/twilio_ap_is/models/conversation_state.rb +45 -0
- data/lib/twilio_ap_is/models/conversation_webhook_method.rb +36 -0
- data/lib/twilio_ap_is/models/conversation_webhook_target.rb +37 -0
- data/lib/twilio_ap_is/models/conversation_with_participants.rb +264 -0
- data/lib/twilio_ap_is/models/conversation_with_participants_state.rb +45 -0
- data/lib/twilio_ap_is/models/credential.rb +175 -0
- data/lib/twilio_ap_is/models/credential1.rb +174 -0
- data/lib/twilio_ap_is/models/credential_aws.rb +153 -0
- data/lib/twilio_ap_is/models/credential_public_key.rb +153 -0
- data/lib/twilio_ap_is/models/credential_push_type.rb +41 -0
- data/lib/twilio_ap_is/models/entity.rb +177 -0
- data/lib/twilio_ap_is/models/event.rb +270 -0
- data/lib/twilio_ap_is/models/factor.rb +235 -0
- data/lib/twilio_ap_is/models/factor_enum_factor_statuses.rb +36 -0
- data/lib/twilio_ap_is/models/factor_enum_factor_type.rb +40 -0
- data/lib/twilio_ap_is/models/factor_enum_notification_platforms.rb +40 -0
- data/lib/twilio_ap_is/models/factor_enum_totp_algorithms.rb +40 -0
- data/lib/twilio_ap_is/models/form_enum_form_types.rb +26 -0
- data/lib/twilio_ap_is/models/list_activity_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_binding_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_configuration_address_response.rb +95 -0
- data/lib/twilio_ap_is/models/list_conversation_message_receipt_response.rb +95 -0
- data/lib/twilio_ap_is/models/list_conversation_message_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_conversation_participant_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_conversation_scoped_webhook_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_credential_aws_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_credential_public_key_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_credential_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_event_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_participant_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_role_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_binding_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_conversation_message_receipt_response.rb +95 -0
- data/lib/twilio_ap_is/models/list_service_conversation_message_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_conversation_participant_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_conversation_scoped_webhook_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_participant_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_role_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_user_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_service_user_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_task_channel_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_task_queue_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_task_queues_statistics_response.rb +95 -0
- data/lib/twilio_ap_is/models/list_task_reservation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_task_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_user_conversation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_user_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_worker_channel_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_worker_reservation_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_worker_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_workflow_response.rb +94 -0
- data/lib/twilio_ap_is/models/list_workspace_response.rb +94 -0
- data/lib/twilio_ap_is/models/messaging_configuration.rb +170 -0
- data/lib/twilio_ap_is/models/meta.rb +140 -0
- data/lib/twilio_ap_is/models/msg_geopermissions.rb +86 -0
- data/lib/twilio_ap_is/models/new_factor.rb +277 -0
- data/lib/twilio_ap_is/models/new_factor_enum_factor_statuses.rb +36 -0
- data/lib/twilio_ap_is/models/new_factor_enum_factor_types.rb +40 -0
- data/lib/twilio_ap_is/models/new_factor_enum_notification_platforms.rb +40 -0
- data/lib/twilio_ap_is/models/new_factor_enum_totp_algorithms.rb +40 -0
- data/lib/twilio_ap_is/models/notif_priority.rb +43 -0
- data/lib/twilio_ap_is/models/notification.rb +363 -0
- data/lib/twilio_ap_is/models/notification1.rb +181 -0
- data/lib/twilio_ap_is/models/participant_conversation.rb +325 -0
- data/lib/twilio_ap_is/models/participant_conversation_state.rb +41 -0
- data/lib/twilio_ap_is/models/rate_limit.rb +189 -0
- data/lib/twilio_ap_is/models/role.rb +192 -0
- data/lib/twilio_ap_is/models/role_role_type.rb +40 -0
- data/lib/twilio_ap_is/models/safelist.rb +88 -0
- data/lib/twilio_ap_is/models/safelist1.rb +99 -0
- data/lib/twilio_ap_is/models/secondary_auth_token.rb +145 -0
- data/lib/twilio_ap_is/models/service.rb +164 -0
- data/lib/twilio_ap_is/models/service1.rb +380 -0
- data/lib/twilio_ap_is/models/service2.rb +350 -0
- data/lib/twilio_ap_is/models/service_binding.rb +226 -0
- data/lib/twilio_ap_is/models/service_binding_binding_type.rb +47 -0
- data/lib/twilio_ap_is/models/service_configuration.rb +180 -0
- data/lib/twilio_ap_is/models/service_conversation.rb +264 -0
- data/lib/twilio_ap_is/models/service_conversation_message.rb +282 -0
- data/lib/twilio_ap_is/models/service_conversation_message_order_type.rb +36 -0
- data/lib/twilio_ap_is/models/service_conversation_message_receipt.rb +233 -0
- data/lib/twilio_ap_is/models/service_conversation_message_receipt_delivery_status.rb +49 -0
- data/lib/twilio_ap_is/models/service_conversation_participant.rb +256 -0
- data/lib/twilio_ap_is/models/service_conversation_scoped_webhook.rb +191 -0
- data/lib/twilio_ap_is/models/service_conversation_scoped_webhook_method.rb +36 -0
- data/lib/twilio_ap_is/models/service_conversation_scoped_webhook_target.rb +40 -0
- data/lib/twilio_ap_is/models/service_conversation_state.rb +45 -0
- data/lib/twilio_ap_is/models/service_conversation_with_participants.rb +264 -0
- data/lib/twilio_ap_is/models/service_conversation_with_participants_state.rb +45 -0
- data/lib/twilio_ap_is/models/service_notification.rb +155 -0
- data/lib/twilio_ap_is/models/service_participant_conversation.rb +325 -0
- data/lib/twilio_ap_is/models/service_participant_conversation_state.rb +41 -0
- data/lib/twilio_ap_is/models/service_role.rb +192 -0
- data/lib/twilio_ap_is/models/service_role_role_type.rb +40 -0
- data/lib/twilio_ap_is/models/service_stats_conversations_rate_limiting_errors_source.rb +36 -0
- data/lib/twilio_ap_is/models/service_user.rb +250 -0
- data/lib/twilio_ap_is/models/service_user_conversation.rb +317 -0
- data/lib/twilio_ap_is/models/service_user_conversation_notification_level.rb +37 -0
- data/lib/twilio_ap_is/models/service_user_conversation_state.rb +41 -0
- data/lib/twilio_ap_is/models/service_webhook_configuration.rb +160 -0
- data/lib/twilio_ap_is/models/service_webhook_configuration_method.rb +37 -0
- data/lib/twilio_ap_is/models/stats_twilsock_rate_limiting_errors_source.rb +26 -0
- data/lib/twilio_ap_is/models/task_channel.rb +204 -0
- data/lib/twilio_ap_is/models/task_queue.rb +278 -0
- data/lib/twilio_ap_is/models/task_queue_bulk_real_time_statistics.rb +141 -0
- data/lib/twilio_ap_is/models/task_queue_cumulative.rb +356 -0
- data/lib/twilio_ap_is/models/task_queue_real_time_statistics.rb +250 -0
- data/lib/twilio_ap_is/models/task_queue_statistics.rb +135 -0
- data/lib/twilio_ap_is/models/task_queue_task_order.rb +40 -0
- data/lib/twilio_ap_is/models/task_queues_stats.rb +124 -0
- data/lib/twilio_ap_is/models/task_reservation.rb +210 -0
- data/lib/twilio_ap_is/models/task_reservation_call_status.rb +44 -0
- data/lib/twilio_ap_is/models/task_reservation_conference_event.rb +56 -0
- data/lib/twilio_ap_is/models/task_reservation_status.rb +61 -0
- data/lib/twilio_ap_is/models/task_reservation_supervisor_mode.rb +40 -0
- data/lib/twilio_ap_is/models/task_router_task.rb +394 -0
- data/lib/twilio_ap_is/models/task_status.rb +53 -0
- data/lib/twilio_ap_is/models/user.rb +250 -0
- data/lib/twilio_ap_is/models/user_binding_binding_type.rb +52 -0
- data/lib/twilio_ap_is/models/user_conversation.rb +317 -0
- data/lib/twilio_ap_is/models/user_conversation_notification_level.rb +37 -0
- data/lib/twilio_ap_is/models/user_conversation_state.rb +41 -0
- data/lib/twilio_ap_is/models/v2_form.rb +112 -0
- data/lib/twilio_ap_is/models/verification.rb +262 -0
- data/lib/twilio_ap_is/models/verification_attempt.rb +219 -0
- data/lib/twilio_ap_is/models/verification_attempt_enum_attempt_status.rb +40 -0
- data/lib/twilio_ap_is/models/verification_attempt_enum_call_status.rb +60 -0
- data/lib/twilio_ap_is/models/verification_attempt_enum_channels.rb +49 -0
- data/lib/twilio_ap_is/models/verification_attempt_enum_conversion_status.rb +38 -0
- data/lib/twilio_ap_is/models/verification_attempt_enum_message_status.rb +80 -0
- data/lib/twilio_ap_is/models/verification_attempts.rb +129 -0
- data/lib/twilio_ap_is/models/verification_attempts_summary_enum_channels.rb +48 -0
- data/lib/twilio_ap_is/models/verification_check.rb +231 -0
- data/lib/twilio_ap_is/models/verification_check_enum_channel.rb +50 -0
- data/lib/twilio_ap_is/models/verification_enum_channel.rb +50 -0
- data/lib/twilio_ap_is/models/verification_enum_risk_check.rb +39 -0
- data/lib/twilio_ap_is/models/verification_enum_status.rb +37 -0
- data/lib/twilio_ap_is/models/verification_template.rb +126 -0
- data/lib/twilio_ap_is/models/webhook.rb +222 -0
- data/lib/twilio_ap_is/models/webhook_enum_status.rb +37 -0
- data/lib/twilio_ap_is/models/webhook_enum_version.rb +37 -0
- data/lib/twilio_ap_is/models/worker.rb +247 -0
- data/lib/twilio_ap_is/models/worker_channel.rb +244 -0
- data/lib/twilio_ap_is/models/worker_instance_statistics.rb +122 -0
- data/lib/twilio_ap_is/models/worker_reservation.rb +210 -0
- data/lib/twilio_ap_is/models/worker_reservation_call_status.rb +44 -0
- data/lib/twilio_ap_is/models/worker_reservation_conference_event.rb +56 -0
- data/lib/twilio_ap_is/models/worker_reservation_status.rb +61 -0
- data/lib/twilio_ap_is/models/worker_statistics.rb +122 -0
- data/lib/twilio_ap_is/models/workers_cumulative_statistics.rb +221 -0
- data/lib/twilio_ap_is/models/workers_real_time_statistics.rb +124 -0
- data/lib/twilio_ap_is/models/workflow.rb +247 -0
- data/lib/twilio_ap_is/models/workflow_cumulative_statistics.rb +347 -0
- data/lib/twilio_ap_is/models/workflow_real_time_statistics.rb +173 -0
- data/lib/twilio_ap_is/models/workflow_statistics.rb +135 -0
- data/lib/twilio_ap_is/models/workspace.rb +285 -0
- data/lib/twilio_ap_is/models/workspace_cumulative_statistics.rb +334 -0
- data/lib/twilio_ap_is/models/workspace_queue_order.rb +40 -0
- data/lib/twilio_ap_is/models/workspace_real_time_statistics.rb +185 -0
- data/lib/twilio_ap_is/models/workspace_statistics.rb +122 -0
- data/lib/twilio_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/twilio_ap_is/utilities/file_wrapper.rb +28 -0
- data/lib/twilio_ap_is.rb +326 -0
- metadata +361 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# twilio_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module TwilioApIs
|
|
8
|
+
# CredentialAws Model.
|
|
9
|
+
class CredentialAws < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# The unique string that we created to identify the AWS resource.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :sid
|
|
16
|
+
|
|
17
|
+
# The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that
|
|
18
|
+
# created the AWS resource.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :account_sid
|
|
21
|
+
|
|
22
|
+
# The string that you assigned to describe the resource.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :friendly_name
|
|
25
|
+
|
|
26
|
+
# The date and time in GMT when the resource was created specified in [RFC
|
|
27
|
+
# 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :date_created
|
|
30
|
+
|
|
31
|
+
# The date and time in GMT when the resource was last updated specified in
|
|
32
|
+
# [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
33
|
+
# @return [DateTime]
|
|
34
|
+
attr_accessor :date_updated
|
|
35
|
+
|
|
36
|
+
# The URI for this resource, relative to `https://accounts.twilio.com`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :url
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['sid'] = 'sid'
|
|
44
|
+
@_hash['account_sid'] = 'account_sid'
|
|
45
|
+
@_hash['friendly_name'] = 'friendly_name'
|
|
46
|
+
@_hash['date_created'] = 'date_created'
|
|
47
|
+
@_hash['date_updated'] = 'date_updated'
|
|
48
|
+
@_hash['url'] = 'url'
|
|
49
|
+
@_hash
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# An array for optional fields
|
|
53
|
+
def self.optionals
|
|
54
|
+
%w[
|
|
55
|
+
sid
|
|
56
|
+
account_sid
|
|
57
|
+
friendly_name
|
|
58
|
+
date_created
|
|
59
|
+
date_updated
|
|
60
|
+
url
|
|
61
|
+
]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for nullable fields
|
|
65
|
+
def self.nullables
|
|
66
|
+
%w[
|
|
67
|
+
sid
|
|
68
|
+
account_sid
|
|
69
|
+
friendly_name
|
|
70
|
+
date_created
|
|
71
|
+
date_updated
|
|
72
|
+
url
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def initialize(sid: SKIP, account_sid: SKIP, friendly_name: SKIP,
|
|
77
|
+
date_created: SKIP, date_updated: SKIP, url: SKIP,
|
|
78
|
+
additional_properties: nil)
|
|
79
|
+
# Add additional model properties to the instance
|
|
80
|
+
additional_properties = {} if additional_properties.nil?
|
|
81
|
+
|
|
82
|
+
@sid = sid unless sid == SKIP
|
|
83
|
+
@account_sid = account_sid unless account_sid == SKIP
|
|
84
|
+
@friendly_name = friendly_name unless friendly_name == SKIP
|
|
85
|
+
@date_created = date_created unless date_created == SKIP
|
|
86
|
+
@date_updated = date_updated unless date_updated == SKIP
|
|
87
|
+
@url = url unless url == SKIP
|
|
88
|
+
@additional_properties = additional_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
sid = hash.key?('sid') ? hash['sid'] : SKIP
|
|
97
|
+
account_sid = hash.key?('account_sid') ? hash['account_sid'] : SKIP
|
|
98
|
+
friendly_name = hash.key?('friendly_name') ? hash['friendly_name'] : SKIP
|
|
99
|
+
date_created = if hash.key?('date_created')
|
|
100
|
+
(DateTimeHelper.from_rfc3339(hash['date_created']) if hash['date_created'])
|
|
101
|
+
else
|
|
102
|
+
SKIP
|
|
103
|
+
end
|
|
104
|
+
date_updated = if hash.key?('date_updated')
|
|
105
|
+
(DateTimeHelper.from_rfc3339(hash['date_updated']) if hash['date_updated'])
|
|
106
|
+
else
|
|
107
|
+
SKIP
|
|
108
|
+
end
|
|
109
|
+
url = hash.key?('url') ? hash['url'] : SKIP
|
|
110
|
+
|
|
111
|
+
# Create a new hash for additional properties, removing known properties.
|
|
112
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
113
|
+
|
|
114
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
115
|
+
new_hash, proc { |value| value }
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
# Create object from extracted values.
|
|
119
|
+
CredentialAws.new(sid: sid,
|
|
120
|
+
account_sid: account_sid,
|
|
121
|
+
friendly_name: friendly_name,
|
|
122
|
+
date_created: date_created,
|
|
123
|
+
date_updated: date_updated,
|
|
124
|
+
url: url,
|
|
125
|
+
additional_properties: additional_properties)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def to_custom_date_created
|
|
129
|
+
DateTimeHelper.to_rfc3339(date_created)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def to_custom_date_updated
|
|
133
|
+
DateTimeHelper.to_rfc3339(date_updated)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Provides a human-readable string representation of the object.
|
|
137
|
+
def to_s
|
|
138
|
+
class_name = self.class.name.split('::').last
|
|
139
|
+
"<#{class_name} sid: #{@sid}, account_sid: #{@account_sid}, friendly_name:"\
|
|
140
|
+
" #{@friendly_name}, date_created: #{@date_created}, date_updated: #{@date_updated}, url:"\
|
|
141
|
+
" #{@url}, additional_properties: #{@additional_properties}>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
145
|
+
def inspect
|
|
146
|
+
class_name = self.class.name.split('::').last
|
|
147
|
+
"<#{class_name} sid: #{@sid.inspect}, account_sid: #{@account_sid.inspect}, friendly_name:"\
|
|
148
|
+
" #{@friendly_name.inspect}, date_created: #{@date_created.inspect}, date_updated:"\
|
|
149
|
+
" #{@date_updated.inspect}, url: #{@url.inspect}, additional_properties:"\
|
|
150
|
+
" #{@additional_properties}>"
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# twilio_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module TwilioApIs
|
|
8
|
+
# CredentialPublicKey Model.
|
|
9
|
+
class CredentialPublicKey < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# The unique string that that we created to identify the PublicKey resource.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :sid
|
|
16
|
+
|
|
17
|
+
# The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that
|
|
18
|
+
# created the Credential that the PublicKey resource belongs to.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :account_sid
|
|
21
|
+
|
|
22
|
+
# The string that you assigned to describe the resource.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :friendly_name
|
|
25
|
+
|
|
26
|
+
# The date and time in GMT when the resource was created specified in [RFC
|
|
27
|
+
# 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :date_created
|
|
30
|
+
|
|
31
|
+
# The date and time in GMT when the resource was last updated specified in
|
|
32
|
+
# [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
33
|
+
# @return [DateTime]
|
|
34
|
+
attr_accessor :date_updated
|
|
35
|
+
|
|
36
|
+
# The URI for this resource, relative to `https://accounts.twilio.com`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :url
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['sid'] = 'sid'
|
|
44
|
+
@_hash['account_sid'] = 'account_sid'
|
|
45
|
+
@_hash['friendly_name'] = 'friendly_name'
|
|
46
|
+
@_hash['date_created'] = 'date_created'
|
|
47
|
+
@_hash['date_updated'] = 'date_updated'
|
|
48
|
+
@_hash['url'] = 'url'
|
|
49
|
+
@_hash
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# An array for optional fields
|
|
53
|
+
def self.optionals
|
|
54
|
+
%w[
|
|
55
|
+
sid
|
|
56
|
+
account_sid
|
|
57
|
+
friendly_name
|
|
58
|
+
date_created
|
|
59
|
+
date_updated
|
|
60
|
+
url
|
|
61
|
+
]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for nullable fields
|
|
65
|
+
def self.nullables
|
|
66
|
+
%w[
|
|
67
|
+
sid
|
|
68
|
+
account_sid
|
|
69
|
+
friendly_name
|
|
70
|
+
date_created
|
|
71
|
+
date_updated
|
|
72
|
+
url
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def initialize(sid: SKIP, account_sid: SKIP, friendly_name: SKIP,
|
|
77
|
+
date_created: SKIP, date_updated: SKIP, url: SKIP,
|
|
78
|
+
additional_properties: nil)
|
|
79
|
+
# Add additional model properties to the instance
|
|
80
|
+
additional_properties = {} if additional_properties.nil?
|
|
81
|
+
|
|
82
|
+
@sid = sid unless sid == SKIP
|
|
83
|
+
@account_sid = account_sid unless account_sid == SKIP
|
|
84
|
+
@friendly_name = friendly_name unless friendly_name == SKIP
|
|
85
|
+
@date_created = date_created unless date_created == SKIP
|
|
86
|
+
@date_updated = date_updated unless date_updated == SKIP
|
|
87
|
+
@url = url unless url == SKIP
|
|
88
|
+
@additional_properties = additional_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
sid = hash.key?('sid') ? hash['sid'] : SKIP
|
|
97
|
+
account_sid = hash.key?('account_sid') ? hash['account_sid'] : SKIP
|
|
98
|
+
friendly_name = hash.key?('friendly_name') ? hash['friendly_name'] : SKIP
|
|
99
|
+
date_created = if hash.key?('date_created')
|
|
100
|
+
(DateTimeHelper.from_rfc3339(hash['date_created']) if hash['date_created'])
|
|
101
|
+
else
|
|
102
|
+
SKIP
|
|
103
|
+
end
|
|
104
|
+
date_updated = if hash.key?('date_updated')
|
|
105
|
+
(DateTimeHelper.from_rfc3339(hash['date_updated']) if hash['date_updated'])
|
|
106
|
+
else
|
|
107
|
+
SKIP
|
|
108
|
+
end
|
|
109
|
+
url = hash.key?('url') ? hash['url'] : SKIP
|
|
110
|
+
|
|
111
|
+
# Create a new hash for additional properties, removing known properties.
|
|
112
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
113
|
+
|
|
114
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
115
|
+
new_hash, proc { |value| value }
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
# Create object from extracted values.
|
|
119
|
+
CredentialPublicKey.new(sid: sid,
|
|
120
|
+
account_sid: account_sid,
|
|
121
|
+
friendly_name: friendly_name,
|
|
122
|
+
date_created: date_created,
|
|
123
|
+
date_updated: date_updated,
|
|
124
|
+
url: url,
|
|
125
|
+
additional_properties: additional_properties)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def to_custom_date_created
|
|
129
|
+
DateTimeHelper.to_rfc3339(date_created)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def to_custom_date_updated
|
|
133
|
+
DateTimeHelper.to_rfc3339(date_updated)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Provides a human-readable string representation of the object.
|
|
137
|
+
def to_s
|
|
138
|
+
class_name = self.class.name.split('::').last
|
|
139
|
+
"<#{class_name} sid: #{@sid}, account_sid: #{@account_sid}, friendly_name:"\
|
|
140
|
+
" #{@friendly_name}, date_created: #{@date_created}, date_updated: #{@date_updated}, url:"\
|
|
141
|
+
" #{@url}, additional_properties: #{@additional_properties}>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
145
|
+
def inspect
|
|
146
|
+
class_name = self.class.name.split('::').last
|
|
147
|
+
"<#{class_name} sid: #{@sid.inspect}, account_sid: #{@account_sid.inspect}, friendly_name:"\
|
|
148
|
+
" #{@friendly_name.inspect}, date_created: #{@date_created.inspect}, date_updated:"\
|
|
149
|
+
" #{@date_updated.inspect}, url: #{@url.inspect}, additional_properties:"\
|
|
150
|
+
" #{@additional_properties}>"
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# twilio_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module TwilioApIs
|
|
7
|
+
# The type of push-notification service the credential is for. Can be: `fcm`,
|
|
8
|
+
# `gcm`, or `apn`., The Credential type. Can be: `gcm`, `fcm`, or `apn`.
|
|
9
|
+
class CredentialPushType
|
|
10
|
+
CREDENTIAL_PUSH_TYPE = [
|
|
11
|
+
# TODO: Write general description for APN
|
|
12
|
+
APN = 'apn'.freeze,
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for GCM
|
|
15
|
+
GCM = 'gcm'.freeze,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for FCM
|
|
18
|
+
FCM = 'fcm'.freeze
|
|
19
|
+
].freeze
|
|
20
|
+
|
|
21
|
+
def self.validate(value)
|
|
22
|
+
return false if value.nil?
|
|
23
|
+
|
|
24
|
+
CREDENTIAL_PUSH_TYPE.include?(value)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.from_value(value, default_value = APN)
|
|
28
|
+
return default_value if value.nil?
|
|
29
|
+
|
|
30
|
+
str = value.to_s.strip
|
|
31
|
+
|
|
32
|
+
case str.downcase
|
|
33
|
+
when 'apn' then APN
|
|
34
|
+
when 'gcm' then GCM
|
|
35
|
+
when 'fcm' then FCM
|
|
36
|
+
else
|
|
37
|
+
default_value
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# twilio_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module TwilioApIs
|
|
8
|
+
# Entity Model.
|
|
9
|
+
class Entity < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# A 34 character string that uniquely identifies this Entity.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :sid
|
|
16
|
+
|
|
17
|
+
# The unique external identifier for the Entity of the Service. This
|
|
18
|
+
# identifier should be immutable, not PII, length between 8 and 64
|
|
19
|
+
# characters, and generated by your external system, such as your user's
|
|
20
|
+
# UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric
|
|
21
|
+
# characters.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :identity
|
|
24
|
+
|
|
25
|
+
# The unique SID identifier of the Account.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :account_sid
|
|
28
|
+
|
|
29
|
+
# The unique SID identifier of the Service.
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :service_sid
|
|
32
|
+
|
|
33
|
+
# The date that this Entity was created, given in [ISO
|
|
34
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
35
|
+
# @return [DateTime]
|
|
36
|
+
attr_accessor :date_created
|
|
37
|
+
|
|
38
|
+
# The date that this Entity was updated, given in [ISO
|
|
39
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
40
|
+
# @return [DateTime]
|
|
41
|
+
attr_accessor :date_updated
|
|
42
|
+
|
|
43
|
+
# The URL of this resource.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :url
|
|
46
|
+
|
|
47
|
+
# Contains a dictionary of URL links to nested resources of this Entity.
|
|
48
|
+
# @return [Object]
|
|
49
|
+
attr_accessor :links
|
|
50
|
+
|
|
51
|
+
# A mapping from model property names to API property names.
|
|
52
|
+
def self.names
|
|
53
|
+
@_hash = {} if @_hash.nil?
|
|
54
|
+
@_hash['sid'] = 'sid'
|
|
55
|
+
@_hash['identity'] = 'identity'
|
|
56
|
+
@_hash['account_sid'] = 'account_sid'
|
|
57
|
+
@_hash['service_sid'] = 'service_sid'
|
|
58
|
+
@_hash['date_created'] = 'date_created'
|
|
59
|
+
@_hash['date_updated'] = 'date_updated'
|
|
60
|
+
@_hash['url'] = 'url'
|
|
61
|
+
@_hash['links'] = 'links'
|
|
62
|
+
@_hash
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# An array for optional fields
|
|
66
|
+
def self.optionals
|
|
67
|
+
%w[
|
|
68
|
+
sid
|
|
69
|
+
identity
|
|
70
|
+
account_sid
|
|
71
|
+
service_sid
|
|
72
|
+
date_created
|
|
73
|
+
date_updated
|
|
74
|
+
url
|
|
75
|
+
links
|
|
76
|
+
]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for nullable fields
|
|
80
|
+
def self.nullables
|
|
81
|
+
%w[
|
|
82
|
+
sid
|
|
83
|
+
identity
|
|
84
|
+
account_sid
|
|
85
|
+
service_sid
|
|
86
|
+
date_created
|
|
87
|
+
date_updated
|
|
88
|
+
url
|
|
89
|
+
links
|
|
90
|
+
]
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def initialize(sid: SKIP, identity: SKIP, account_sid: SKIP,
|
|
94
|
+
service_sid: SKIP, date_created: SKIP, date_updated: SKIP,
|
|
95
|
+
url: SKIP, links: SKIP, additional_properties: nil)
|
|
96
|
+
# Add additional model properties to the instance
|
|
97
|
+
additional_properties = {} if additional_properties.nil?
|
|
98
|
+
|
|
99
|
+
@sid = sid unless sid == SKIP
|
|
100
|
+
@identity = identity unless identity == SKIP
|
|
101
|
+
@account_sid = account_sid unless account_sid == SKIP
|
|
102
|
+
@service_sid = service_sid unless service_sid == SKIP
|
|
103
|
+
@date_created = date_created unless date_created == SKIP
|
|
104
|
+
@date_updated = date_updated unless date_updated == SKIP
|
|
105
|
+
@url = url unless url == SKIP
|
|
106
|
+
@links = links unless links == SKIP
|
|
107
|
+
@additional_properties = additional_properties
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Creates an instance of the object from a hash.
|
|
111
|
+
def self.from_hash(hash)
|
|
112
|
+
return nil unless hash
|
|
113
|
+
|
|
114
|
+
# Extract variables from the hash.
|
|
115
|
+
sid = hash.key?('sid') ? hash['sid'] : SKIP
|
|
116
|
+
identity = hash.key?('identity') ? hash['identity'] : SKIP
|
|
117
|
+
account_sid = hash.key?('account_sid') ? hash['account_sid'] : SKIP
|
|
118
|
+
service_sid = hash.key?('service_sid') ? hash['service_sid'] : SKIP
|
|
119
|
+
date_created = if hash.key?('date_created')
|
|
120
|
+
(DateTimeHelper.from_rfc3339(hash['date_created']) if hash['date_created'])
|
|
121
|
+
else
|
|
122
|
+
SKIP
|
|
123
|
+
end
|
|
124
|
+
date_updated = if hash.key?('date_updated')
|
|
125
|
+
(DateTimeHelper.from_rfc3339(hash['date_updated']) if hash['date_updated'])
|
|
126
|
+
else
|
|
127
|
+
SKIP
|
|
128
|
+
end
|
|
129
|
+
url = hash.key?('url') ? hash['url'] : SKIP
|
|
130
|
+
links = hash.key?('links') ? hash['links'] : SKIP
|
|
131
|
+
|
|
132
|
+
# Create a new hash for additional properties, removing known properties.
|
|
133
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
134
|
+
|
|
135
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
136
|
+
new_hash, proc { |value| value }
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
# Create object from extracted values.
|
|
140
|
+
Entity.new(sid: sid,
|
|
141
|
+
identity: identity,
|
|
142
|
+
account_sid: account_sid,
|
|
143
|
+
service_sid: service_sid,
|
|
144
|
+
date_created: date_created,
|
|
145
|
+
date_updated: date_updated,
|
|
146
|
+
url: url,
|
|
147
|
+
links: links,
|
|
148
|
+
additional_properties: additional_properties)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def to_custom_date_created
|
|
152
|
+
DateTimeHelper.to_rfc3339(date_created)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def to_custom_date_updated
|
|
156
|
+
DateTimeHelper.to_rfc3339(date_updated)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Provides a human-readable string representation of the object.
|
|
160
|
+
def to_s
|
|
161
|
+
class_name = self.class.name.split('::').last
|
|
162
|
+
"<#{class_name} sid: #{@sid}, identity: #{@identity}, account_sid: #{@account_sid},"\
|
|
163
|
+
" service_sid: #{@service_sid}, date_created: #{@date_created}, date_updated:"\
|
|
164
|
+
" #{@date_updated}, url: #{@url}, links: #{@links}, additional_properties:"\
|
|
165
|
+
" #{@additional_properties}>"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
169
|
+
def inspect
|
|
170
|
+
class_name = self.class.name.split('::').last
|
|
171
|
+
"<#{class_name} sid: #{@sid.inspect}, identity: #{@identity.inspect}, account_sid:"\
|
|
172
|
+
" #{@account_sid.inspect}, service_sid: #{@service_sid.inspect}, date_created:"\
|
|
173
|
+
" #{@date_created.inspect}, date_updated: #{@date_updated.inspect}, url: #{@url.inspect},"\
|
|
174
|
+
" links: #{@links.inspect}, additional_properties: #{@additional_properties}>"
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|