diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6aa1064 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..06c6d55 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = ['twil-api', 'twil-content'] diff --git a/gen.sh b/gen.sh new file mode 100644 index 0000000..7897687 --- /dev/null +++ b/gen.sh @@ -0,0 +1,4 @@ +#! /bin/bash +rm -r twil-content twil-api +openapi-generator-cli generate -g rust -i oai/spec/json/twilio_api_v2010.json -o twil-api +openapi-generator-cli generate -g rust -i oai/spec/json/twilio_content_v1.json -o twil-content diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..cd53ff4 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "6.6.0" + } +} diff --git a/twil-api/.gitignore b/twil-api/.gitignore new file mode 100644 index 0000000..6aa1064 --- /dev/null +++ b/twil-api/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/twil-api/.openapi-generator-ignore b/twil-api/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/twil-api/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/twil-api/.openapi-generator/FILES b/twil-api/.openapi-generator/FILES new file mode 100644 index 0000000..78ad503 --- /dev/null +++ b/twil-api/.openapi-generator/FILES @@ -0,0 +1,404 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +Cargo.toml +README.md +docs/AccountEnumStatus.md +docs/AccountEnumType.md +docs/ApiPeriodV2010PeriodAccount.md +docs/ApiPeriodV2010PeriodAccountPeriodAddress.md +docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md +docs/ApiPeriodV2010PeriodAccountPeriodApplication.md +docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md +docs/ApiPeriodV2010PeriodAccountPeriodBalance.md +docs/ApiPeriodV2010PeriodAccountPeriodCall.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md +docs/ApiPeriodV2010PeriodAccountPeriodConference.md +docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md +docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md +docs/ApiPeriodV2010PeriodAccountPeriodKey.md +docs/ApiPeriodV2010PeriodAccountPeriodMessage.md +docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md +docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md +docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md +docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md +docs/ApiPeriodV2010PeriodAccountPeriodNotification.md +docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md +docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md +docs/ApiPeriodV2010PeriodAccountPeriodQueue.md +docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md +docs/ApiPeriodV2010PeriodAccountPeriodRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md +docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md +docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md +docs/ApiPeriodV2010PeriodAccountPeriodToken.md +docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md +docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md +docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md +docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md +docs/ApiV2010AccountTokenIceServersInner.md +docs/AuthorizedConnectAppEnumPermission.md +docs/CallEnumEvent.md +docs/CallEnumStatus.md +docs/CallFeedbackEnumIssues.md +docs/CallFeedbackSummaryEnumStatus.md +docs/CallRecordingEnumSource.md +docs/CallRecordingEnumStatus.md +docs/ConferenceEnumReasonConferenceEnded.md +docs/ConferenceEnumStatus.md +docs/ConferenceRecordingEnumSource.md +docs/ConferenceRecordingEnumStatus.md +docs/ConnectAppEnumPermission.md +docs/DefaultApi.md +docs/DependentPhoneNumberEnumAddressRequirement.md +docs/DependentPhoneNumberEnumEmergencyStatus.md +docs/IncomingPhoneNumberEnumAddressRequirement.md +docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberEnumEmergencyStatus.md +docs/IncomingPhoneNumberEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberLocalEnumAddressRequirement.md +docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md +docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberMobileEnumAddressRequirement.md +docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md +docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md +docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md +docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md +docs/ListAccountResponse.md +docs/ListAddressResponse.md +docs/ListApplicationResponse.md +docs/ListAuthorizedConnectAppResponse.md +docs/ListAvailablePhoneNumberCountryResponse.md +docs/ListAvailablePhoneNumberLocalResponse.md +docs/ListAvailablePhoneNumberMachineToMachineResponse.md +docs/ListAvailablePhoneNumberMobileResponse.md +docs/ListAvailablePhoneNumberNationalResponse.md +docs/ListAvailablePhoneNumberSharedCostResponse.md +docs/ListAvailablePhoneNumberTollFreeResponse.md +docs/ListAvailablePhoneNumberVoipResponse.md +docs/ListCallEventResponse.md +docs/ListCallNotificationResponse.md +docs/ListCallRecordingResponse.md +docs/ListCallResponse.md +docs/ListConferenceRecordingResponse.md +docs/ListConferenceResponse.md +docs/ListConnectAppResponse.md +docs/ListDependentPhoneNumberResponse.md +docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md +docs/ListIncomingPhoneNumberAssignedAddOnResponse.md +docs/ListIncomingPhoneNumberLocalResponse.md +docs/ListIncomingPhoneNumberMobileResponse.md +docs/ListIncomingPhoneNumberResponse.md +docs/ListIncomingPhoneNumberTollFreeResponse.md +docs/ListKeyResponse.md +docs/ListMediaResponse.md +docs/ListMemberResponse.md +docs/ListMessageResponse.md +docs/ListNotificationResponse.md +docs/ListOutgoingCallerIdResponse.md +docs/ListParticipantResponse.md +docs/ListQueueResponse.md +docs/ListRecordingAddOnResultPayloadResponse.md +docs/ListRecordingAddOnResultResponse.md +docs/ListRecordingResponse.md +docs/ListRecordingTranscriptionResponse.md +docs/ListShortCodeResponse.md +docs/ListSigningKeyResponse.md +docs/ListSipAuthCallsCredentialListMappingResponse.md +docs/ListSipAuthCallsIpAccessControlListMappingResponse.md +docs/ListSipAuthRegistrationsCredentialListMappingResponse.md +docs/ListSipCredentialListMappingResponse.md +docs/ListSipCredentialListResponse.md +docs/ListSipCredentialResponse.md +docs/ListSipDomainResponse.md +docs/ListSipIpAccessControlListMappingResponse.md +docs/ListSipIpAccessControlListResponse.md +docs/ListSipIpAddressResponse.md +docs/ListTranscriptionResponse.md +docs/ListUsageRecordAllTimeResponse.md +docs/ListUsageRecordDailyResponse.md +docs/ListUsageRecordLastMonthResponse.md +docs/ListUsageRecordMonthlyResponse.md +docs/ListUsageRecordResponse.md +docs/ListUsageRecordThisMonthResponse.md +docs/ListUsageRecordTodayResponse.md +docs/ListUsageRecordYearlyResponse.md +docs/ListUsageRecordYesterdayResponse.md +docs/ListUsageTriggerResponse.md +docs/MessageEnumDirection.md +docs/MessageEnumStatus.md +docs/MessageEnumTrafficType.md +docs/MessageFeedbackEnumOutcome.md +docs/ParticipantEnumStatus.md +docs/RecordingAddOnResultEnumStatus.md +docs/RecordingEnumSource.md +docs/RecordingEnumStatus.md +docs/RecordingTranscriptionEnumStatus.md +docs/SiprecEnumStatus.md +docs/StreamEnumStatus.md +docs/TranscriptionEnumStatus.md +docs/UsageRecordAllTimeEnumCategory.md +docs/UsageRecordDailyEnumCategory.md +docs/UsageRecordEnumCategory.md +docs/UsageRecordLastMonthEnumCategory.md +docs/UsageRecordMonthlyEnumCategory.md +docs/UsageRecordThisMonthEnumCategory.md +docs/UsageRecordTodayEnumCategory.md +docs/UsageRecordYearlyEnumCategory.md +docs/UsageRecordYesterdayEnumCategory.md +docs/UsageTriggerEnumRecurring.md +docs/UsageTriggerEnumTriggerField.md +docs/UsageTriggerEnumUsageCategory.md +git_push.sh +src/apis/configuration.rs +src/apis/default_api.rs +src/apis/mod.rs +src/lib.rs +src/models/account_enum_status.rs +src/models/account_enum_type.rs +src/models/api_period_v2010_period_account.rs +src/models/api_period_v2010_period_account_period_address.rs +src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs +src/models/api_period_v2010_period_account_period_application.rs +src/models/api_period_v2010_period_account_period_authorized_connect_app.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs +src/models/api_period_v2010_period_account_period_balance.rs +src/models/api_period_v2010_period_account_period_call.rs +src/models/api_period_v2010_period_account_period_call_period_call_event.rs +src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs +src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs +src/models/api_period_v2010_period_account_period_call_period_call_notification.rs +src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs +src/models/api_period_v2010_period_account_period_call_period_call_recording.rs +src/models/api_period_v2010_period_account_period_call_period_payments.rs +src/models/api_period_v2010_period_account_period_call_period_siprec.rs +src/models/api_period_v2010_period_account_period_call_period_stream.rs +src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs +src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs +src/models/api_period_v2010_period_account_period_conference.rs +src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs +src/models/api_period_v2010_period_account_period_conference_period_participant.rs +src/models/api_period_v2010_period_account_period_connect_app.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs +src/models/api_period_v2010_period_account_period_key.rs +src/models/api_period_v2010_period_account_period_message.rs +src/models/api_period_v2010_period_account_period_message_period_media.rs +src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs +src/models/api_period_v2010_period_account_period_new_key.rs +src/models/api_period_v2010_period_account_period_new_signing_key.rs +src/models/api_period_v2010_period_account_period_notification.rs +src/models/api_period_v2010_period_account_period_notification_instance.rs +src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs +src/models/api_period_v2010_period_account_period_queue.rs +src/models/api_period_v2010_period_account_period_queue_period_member.rs +src/models/api_period_v2010_period_account_period_recording.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs +src/models/api_period_v2010_period_account_period_short_code.rs +src/models/api_period_v2010_period_account_period_signing_key.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs +src/models/api_period_v2010_period_account_period_token.rs +src/models/api_period_v2010_period_account_period_transcription.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs +src/models/api_period_v2010_period_account_period_validation_request.rs +src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs +src/models/api_v2010_account_incoming_phone_number_capabilities.rs +src/models/api_v2010_account_token_ice_servers_inner.rs +src/models/authorized_connect_app_enum_permission.rs +src/models/call_enum_event.rs +src/models/call_enum_status.rs +src/models/call_feedback_enum_issues.rs +src/models/call_feedback_summary_enum_status.rs +src/models/call_recording_enum_source.rs +src/models/call_recording_enum_status.rs +src/models/conference_enum_reason_conference_ended.rs +src/models/conference_enum_status.rs +src/models/conference_recording_enum_source.rs +src/models/conference_recording_enum_status.rs +src/models/connect_app_enum_permission.rs +src/models/dependent_phone_number_enum_address_requirement.rs +src/models/dependent_phone_number_enum_emergency_status.rs +src/models/incoming_phone_number_enum_address_requirement.rs +src/models/incoming_phone_number_enum_emergency_address_status.rs +src/models/incoming_phone_number_enum_emergency_status.rs +src/models/incoming_phone_number_enum_voice_receive_mode.rs +src/models/incoming_phone_number_local_enum_address_requirement.rs +src/models/incoming_phone_number_local_enum_emergency_address_status.rs +src/models/incoming_phone_number_local_enum_emergency_status.rs +src/models/incoming_phone_number_local_enum_voice_receive_mode.rs +src/models/incoming_phone_number_mobile_enum_address_requirement.rs +src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs +src/models/incoming_phone_number_mobile_enum_emergency_status.rs +src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs +src/models/incoming_phone_number_toll_free_enum_address_requirement.rs +src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs +src/models/incoming_phone_number_toll_free_enum_emergency_status.rs +src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs +src/models/list_account_response.rs +src/models/list_address_response.rs +src/models/list_application_response.rs +src/models/list_authorized_connect_app_response.rs +src/models/list_available_phone_number_country_response.rs +src/models/list_available_phone_number_local_response.rs +src/models/list_available_phone_number_machine_to_machine_response.rs +src/models/list_available_phone_number_mobile_response.rs +src/models/list_available_phone_number_national_response.rs +src/models/list_available_phone_number_shared_cost_response.rs +src/models/list_available_phone_number_toll_free_response.rs +src/models/list_available_phone_number_voip_response.rs +src/models/list_call_event_response.rs +src/models/list_call_notification_response.rs +src/models/list_call_recording_response.rs +src/models/list_call_response.rs +src/models/list_conference_recording_response.rs +src/models/list_conference_response.rs +src/models/list_connect_app_response.rs +src/models/list_dependent_phone_number_response.rs +src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs +src/models/list_incoming_phone_number_assigned_add_on_response.rs +src/models/list_incoming_phone_number_local_response.rs +src/models/list_incoming_phone_number_mobile_response.rs +src/models/list_incoming_phone_number_response.rs +src/models/list_incoming_phone_number_toll_free_response.rs +src/models/list_key_response.rs +src/models/list_media_response.rs +src/models/list_member_response.rs +src/models/list_message_response.rs +src/models/list_notification_response.rs +src/models/list_outgoing_caller_id_response.rs +src/models/list_participant_response.rs +src/models/list_queue_response.rs +src/models/list_recording_add_on_result_payload_response.rs +src/models/list_recording_add_on_result_response.rs +src/models/list_recording_response.rs +src/models/list_recording_transcription_response.rs +src/models/list_short_code_response.rs +src/models/list_signing_key_response.rs +src/models/list_sip_auth_calls_credential_list_mapping_response.rs +src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs +src/models/list_sip_auth_registrations_credential_list_mapping_response.rs +src/models/list_sip_credential_list_mapping_response.rs +src/models/list_sip_credential_list_response.rs +src/models/list_sip_credential_response.rs +src/models/list_sip_domain_response.rs +src/models/list_sip_ip_access_control_list_mapping_response.rs +src/models/list_sip_ip_access_control_list_response.rs +src/models/list_sip_ip_address_response.rs +src/models/list_transcription_response.rs +src/models/list_usage_record_all_time_response.rs +src/models/list_usage_record_daily_response.rs +src/models/list_usage_record_last_month_response.rs +src/models/list_usage_record_monthly_response.rs +src/models/list_usage_record_response.rs +src/models/list_usage_record_this_month_response.rs +src/models/list_usage_record_today_response.rs +src/models/list_usage_record_yearly_response.rs +src/models/list_usage_record_yesterday_response.rs +src/models/list_usage_trigger_response.rs +src/models/message_enum_direction.rs +src/models/message_enum_status.rs +src/models/message_enum_traffic_type.rs +src/models/message_feedback_enum_outcome.rs +src/models/mod.rs +src/models/participant_enum_status.rs +src/models/recording_add_on_result_enum_status.rs +src/models/recording_enum_source.rs +src/models/recording_enum_status.rs +src/models/recording_transcription_enum_status.rs +src/models/siprec_enum_status.rs +src/models/stream_enum_status.rs +src/models/transcription_enum_status.rs +src/models/usage_record_all_time_enum_category.rs +src/models/usage_record_daily_enum_category.rs +src/models/usage_record_enum_category.rs +src/models/usage_record_last_month_enum_category.rs +src/models/usage_record_monthly_enum_category.rs +src/models/usage_record_this_month_enum_category.rs +src/models/usage_record_today_enum_category.rs +src/models/usage_record_yearly_enum_category.rs +src/models/usage_record_yesterday_enum_category.rs +src/models/usage_trigger_enum_recurring.rs +src/models/usage_trigger_enum_trigger_field.rs +src/models/usage_trigger_enum_usage_category.rs diff --git a/twil-api/.openapi-generator/VERSION b/twil-api/.openapi-generator/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/twil-api/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/twil-api/.travis.yml b/twil-api/.travis.yml new file mode 100644 index 0000000..22761ba --- /dev/null +++ b/twil-api/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/twil-api/Cargo.toml b/twil-api/Cargo.toml new file mode 100644 index 0000000..c8629d1 --- /dev/null +++ b/twil-api/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "twil-api" +version = "1.46.0" +authors = ["support@twilio.com"] +description = "This is the public Twilio REST API." +license = "Apache 2.0" +edition = "2018" + +[dependencies] +serde = "^1.0" +serde_derive = "^1.0" +serde_with = "^2.0" +serde_json = "^1.0" +url = "^2.2" +uuid = { version = "^1.0", features = ["serde"] } +[dependencies.reqwest] +version = "^0.11" +features = ["json", "multipart"] diff --git a/twil-api/README.md b/twil-api/README.md new file mode 100644 index 0000000..95aea88 --- /dev/null +++ b/twil-api/README.md @@ -0,0 +1,439 @@ +# Rust API client for openapi + +This is the public Twilio REST API. + +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. + +- API version: 1.46.0 +- Package version: 1.46.0 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` + +## Installation + +Put the package under your project folder in a directory named `openapi` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +openapi = { path = "./openapi" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**create_account**](docs/DefaultApi.md#create_account) | **POST** /2010-04-01/Accounts.json | +*DefaultApi* | [**create_address**](docs/DefaultApi.md#create_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*DefaultApi* | [**create_application**](docs/DefaultApi.md#create_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*DefaultApi* | [**create_call**](docs/DefaultApi.md#create_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*DefaultApi* | [**create_call_feedback_summary**](docs/DefaultApi.md#create_call_feedback_summary) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +*DefaultApi* | [**create_call_recording**](docs/DefaultApi.md#create_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*DefaultApi* | [**create_incoming_phone_number**](docs/DefaultApi.md#create_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*DefaultApi* | [**create_incoming_phone_number_assigned_add_on**](docs/DefaultApi.md#create_incoming_phone_number_assigned_add_on) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*DefaultApi* | [**create_incoming_phone_number_local**](docs/DefaultApi.md#create_incoming_phone_number_local) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*DefaultApi* | [**create_incoming_phone_number_mobile**](docs/DefaultApi.md#create_incoming_phone_number_mobile) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*DefaultApi* | [**create_incoming_phone_number_toll_free**](docs/DefaultApi.md#create_incoming_phone_number_toll_free) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*DefaultApi* | [**create_message**](docs/DefaultApi.md#create_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*DefaultApi* | [**create_message_feedback**](docs/DefaultApi.md#create_message_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +*DefaultApi* | [**create_new_key**](docs/DefaultApi.md#create_new_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*DefaultApi* | [**create_new_signing_key**](docs/DefaultApi.md#create_new_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*DefaultApi* | [**create_participant**](docs/DefaultApi.md#create_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*DefaultApi* | [**create_payments**](docs/DefaultApi.md#create_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +*DefaultApi* | [**create_queue**](docs/DefaultApi.md#create_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*DefaultApi* | [**create_sip_auth_calls_credential_list_mapping**](docs/DefaultApi.md#create_sip_auth_calls_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*DefaultApi* | [**create_sip_auth_calls_ip_access_control_list_mapping**](docs/DefaultApi.md#create_sip_auth_calls_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*DefaultApi* | [**create_sip_auth_registrations_credential_list_mapping**](docs/DefaultApi.md#create_sip_auth_registrations_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*DefaultApi* | [**create_sip_credential**](docs/DefaultApi.md#create_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*DefaultApi* | [**create_sip_credential_list**](docs/DefaultApi.md#create_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*DefaultApi* | [**create_sip_credential_list_mapping**](docs/DefaultApi.md#create_sip_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*DefaultApi* | [**create_sip_domain**](docs/DefaultApi.md#create_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*DefaultApi* | [**create_sip_ip_access_control_list**](docs/DefaultApi.md#create_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*DefaultApi* | [**create_sip_ip_access_control_list_mapping**](docs/DefaultApi.md#create_sip_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*DefaultApi* | [**create_sip_ip_address**](docs/DefaultApi.md#create_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*DefaultApi* | [**create_siprec**](docs/DefaultApi.md#create_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json | +*DefaultApi* | [**create_stream**](docs/DefaultApi.md#create_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | +*DefaultApi* | [**create_token**](docs/DefaultApi.md#create_token) | **POST** /2010-04-01/Accounts/{AccountSid}/Tokens.json | +*DefaultApi* | [**create_usage_trigger**](docs/DefaultApi.md#create_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*DefaultApi* | [**create_user_defined_message**](docs/DefaultApi.md#create_user_defined_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | +*DefaultApi* | [**create_user_defined_message_subscription**](docs/DefaultApi.md#create_user_defined_message_subscription) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +*DefaultApi* | [**create_validation_request**](docs/DefaultApi.md#create_validation_request) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*DefaultApi* | [**delete_address**](docs/DefaultApi.md#delete_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**delete_application**](docs/DefaultApi.md#delete_application) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**delete_call**](docs/DefaultApi.md#delete_call) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**delete_call_feedback_summary**](docs/DefaultApi.md#delete_call_feedback_summary) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*DefaultApi* | [**delete_call_recording**](docs/DefaultApi.md#delete_call_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**delete_conference_recording**](docs/DefaultApi.md#delete_conference_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**delete_connect_app**](docs/DefaultApi.md#delete_connect_app) | **DELETE** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**delete_incoming_phone_number**](docs/DefaultApi.md#delete_incoming_phone_number) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**delete_incoming_phone_number_assigned_add_on**](docs/DefaultApi.md#delete_incoming_phone_number_assigned_add_on) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*DefaultApi* | [**delete_key**](docs/DefaultApi.md#delete_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**delete_media**](docs/DefaultApi.md#delete_media) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*DefaultApi* | [**delete_message**](docs/DefaultApi.md#delete_message) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**delete_outgoing_caller_id**](docs/DefaultApi.md#delete_outgoing_caller_id) | **DELETE** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**delete_participant**](docs/DefaultApi.md#delete_participant) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**delete_queue**](docs/DefaultApi.md#delete_queue) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**delete_recording**](docs/DefaultApi.md#delete_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*DefaultApi* | [**delete_recording_add_on_result**](docs/DefaultApi.md#delete_recording_add_on_result) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*DefaultApi* | [**delete_recording_add_on_result_payload**](docs/DefaultApi.md#delete_recording_add_on_result_payload) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*DefaultApi* | [**delete_recording_transcription**](docs/DefaultApi.md#delete_recording_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**delete_signing_key**](docs/DefaultApi.md#delete_signing_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**delete_sip_auth_calls_credential_list_mapping**](docs/DefaultApi.md#delete_sip_auth_calls_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**delete_sip_auth_calls_ip_access_control_list_mapping**](docs/DefaultApi.md#delete_sip_auth_calls_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**delete_sip_auth_registrations_credential_list_mapping**](docs/DefaultApi.md#delete_sip_auth_registrations_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**delete_sip_credential**](docs/DefaultApi.md#delete_sip_credential) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**delete_sip_credential_list**](docs/DefaultApi.md#delete_sip_credential_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**delete_sip_credential_list_mapping**](docs/DefaultApi.md#delete_sip_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**delete_sip_domain**](docs/DefaultApi.md#delete_sip_domain) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**delete_sip_ip_access_control_list**](docs/DefaultApi.md#delete_sip_ip_access_control_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**delete_sip_ip_access_control_list_mapping**](docs/DefaultApi.md#delete_sip_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**delete_sip_ip_address**](docs/DefaultApi.md#delete_sip_ip_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**delete_transcription**](docs/DefaultApi.md#delete_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**delete_usage_trigger**](docs/DefaultApi.md#delete_usage_trigger) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*DefaultApi* | [**delete_user_defined_message_subscription**](docs/DefaultApi.md#delete_user_defined_message_subscription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | +*DefaultApi* | [**fetch_account**](docs/DefaultApi.md#fetch_account) | **GET** /2010-04-01/Accounts/{Sid}.json | +*DefaultApi* | [**fetch_address**](docs/DefaultApi.md#fetch_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**fetch_application**](docs/DefaultApi.md#fetch_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**fetch_authorized_connect_app**](docs/DefaultApi.md#fetch_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +*DefaultApi* | [**fetch_available_phone_number_country**](docs/DefaultApi.md#fetch_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +*DefaultApi* | [**fetch_balance**](docs/DefaultApi.md#fetch_balance) | **GET** /2010-04-01/Accounts/{AccountSid}/Balance.json | +*DefaultApi* | [**fetch_call**](docs/DefaultApi.md#fetch_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**fetch_call_feedback**](docs/DefaultApi.md#fetch_call_feedback) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*DefaultApi* | [**fetch_call_feedback_summary**](docs/DefaultApi.md#fetch_call_feedback_summary) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*DefaultApi* | [**fetch_call_notification**](docs/DefaultApi.md#fetch_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +*DefaultApi* | [**fetch_call_recording**](docs/DefaultApi.md#fetch_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**fetch_conference**](docs/DefaultApi.md#fetch_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*DefaultApi* | [**fetch_conference_recording**](docs/DefaultApi.md#fetch_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**fetch_connect_app**](docs/DefaultApi.md#fetch_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**fetch_incoming_phone_number**](docs/DefaultApi.md#fetch_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**fetch_incoming_phone_number_assigned_add_on**](docs/DefaultApi.md#fetch_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*DefaultApi* | [**fetch_incoming_phone_number_assigned_add_on_extension**](docs/DefaultApi.md#fetch_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +*DefaultApi* | [**fetch_key**](docs/DefaultApi.md#fetch_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**fetch_media**](docs/DefaultApi.md#fetch_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*DefaultApi* | [**fetch_member**](docs/DefaultApi.md#fetch_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*DefaultApi* | [**fetch_message**](docs/DefaultApi.md#fetch_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**fetch_notification**](docs/DefaultApi.md#fetch_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +*DefaultApi* | [**fetch_outgoing_caller_id**](docs/DefaultApi.md#fetch_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**fetch_participant**](docs/DefaultApi.md#fetch_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**fetch_queue**](docs/DefaultApi.md#fetch_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**fetch_recording**](docs/DefaultApi.md#fetch_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*DefaultApi* | [**fetch_recording_add_on_result**](docs/DefaultApi.md#fetch_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*DefaultApi* | [**fetch_recording_add_on_result_payload**](docs/DefaultApi.md#fetch_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*DefaultApi* | [**fetch_recording_transcription**](docs/DefaultApi.md#fetch_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**fetch_short_code**](docs/DefaultApi.md#fetch_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*DefaultApi* | [**fetch_signing_key**](docs/DefaultApi.md#fetch_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**fetch_sip_auth_calls_credential_list_mapping**](docs/DefaultApi.md#fetch_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**fetch_sip_auth_calls_ip_access_control_list_mapping**](docs/DefaultApi.md#fetch_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**fetch_sip_auth_registrations_credential_list_mapping**](docs/DefaultApi.md#fetch_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**fetch_sip_credential**](docs/DefaultApi.md#fetch_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**fetch_sip_credential_list**](docs/DefaultApi.md#fetch_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**fetch_sip_credential_list_mapping**](docs/DefaultApi.md#fetch_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**fetch_sip_domain**](docs/DefaultApi.md#fetch_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**fetch_sip_ip_access_control_list**](docs/DefaultApi.md#fetch_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**fetch_sip_ip_access_control_list_mapping**](docs/DefaultApi.md#fetch_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**fetch_sip_ip_address**](docs/DefaultApi.md#fetch_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**fetch_transcription**](docs/DefaultApi.md#fetch_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**fetch_usage_trigger**](docs/DefaultApi.md#fetch_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*DefaultApi* | [**list_account**](docs/DefaultApi.md#list_account) | **GET** /2010-04-01/Accounts.json | +*DefaultApi* | [**list_address**](docs/DefaultApi.md#list_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*DefaultApi* | [**list_application**](docs/DefaultApi.md#list_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*DefaultApi* | [**list_authorized_connect_app**](docs/DefaultApi.md#list_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | +*DefaultApi* | [**list_available_phone_number_country**](docs/DefaultApi.md#list_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | +*DefaultApi* | [**list_available_phone_number_local**](docs/DefaultApi.md#list_available_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +*DefaultApi* | [**list_available_phone_number_machine_to_machine**](docs/DefaultApi.md#list_available_phone_number_machine_to_machine) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | +*DefaultApi* | [**list_available_phone_number_mobile**](docs/DefaultApi.md#list_available_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +*DefaultApi* | [**list_available_phone_number_national**](docs/DefaultApi.md#list_available_phone_number_national) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | +*DefaultApi* | [**list_available_phone_number_shared_cost**](docs/DefaultApi.md#list_available_phone_number_shared_cost) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | +*DefaultApi* | [**list_available_phone_number_toll_free**](docs/DefaultApi.md#list_available_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +*DefaultApi* | [**list_available_phone_number_voip**](docs/DefaultApi.md#list_available_phone_number_voip) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | +*DefaultApi* | [**list_call**](docs/DefaultApi.md#list_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*DefaultApi* | [**list_call_event**](docs/DefaultApi.md#list_call_event) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | +*DefaultApi* | [**list_call_notification**](docs/DefaultApi.md#list_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +*DefaultApi* | [**list_call_recording**](docs/DefaultApi.md#list_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*DefaultApi* | [**list_conference**](docs/DefaultApi.md#list_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +*DefaultApi* | [**list_conference_recording**](docs/DefaultApi.md#list_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +*DefaultApi* | [**list_connect_app**](docs/DefaultApi.md#list_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +*DefaultApi* | [**list_dependent_phone_number**](docs/DefaultApi.md#list_dependent_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | +*DefaultApi* | [**list_incoming_phone_number**](docs/DefaultApi.md#list_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*DefaultApi* | [**list_incoming_phone_number_assigned_add_on**](docs/DefaultApi.md#list_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*DefaultApi* | [**list_incoming_phone_number_assigned_add_on_extension**](docs/DefaultApi.md#list_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | +*DefaultApi* | [**list_incoming_phone_number_local**](docs/DefaultApi.md#list_incoming_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*DefaultApi* | [**list_incoming_phone_number_mobile**](docs/DefaultApi.md#list_incoming_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*DefaultApi* | [**list_incoming_phone_number_toll_free**](docs/DefaultApi.md#list_incoming_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*DefaultApi* | [**list_key**](docs/DefaultApi.md#list_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*DefaultApi* | [**list_media**](docs/DefaultApi.md#list_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | +*DefaultApi* | [**list_member**](docs/DefaultApi.md#list_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +*DefaultApi* | [**list_message**](docs/DefaultApi.md#list_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*DefaultApi* | [**list_notification**](docs/DefaultApi.md#list_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications.json | +*DefaultApi* | [**list_outgoing_caller_id**](docs/DefaultApi.md#list_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*DefaultApi* | [**list_participant**](docs/DefaultApi.md#list_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*DefaultApi* | [**list_queue**](docs/DefaultApi.md#list_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*DefaultApi* | [**list_recording**](docs/DefaultApi.md#list_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +*DefaultApi* | [**list_recording_add_on_result**](docs/DefaultApi.md#list_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | +*DefaultApi* | [**list_recording_add_on_result_payload**](docs/DefaultApi.md#list_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | +*DefaultApi* | [**list_recording_transcription**](docs/DefaultApi.md#list_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +*DefaultApi* | [**list_short_code**](docs/DefaultApi.md#list_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +*DefaultApi* | [**list_signing_key**](docs/DefaultApi.md#list_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*DefaultApi* | [**list_sip_auth_calls_credential_list_mapping**](docs/DefaultApi.md#list_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*DefaultApi* | [**list_sip_auth_calls_ip_access_control_list_mapping**](docs/DefaultApi.md#list_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*DefaultApi* | [**list_sip_auth_registrations_credential_list_mapping**](docs/DefaultApi.md#list_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*DefaultApi* | [**list_sip_credential**](docs/DefaultApi.md#list_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*DefaultApi* | [**list_sip_credential_list**](docs/DefaultApi.md#list_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*DefaultApi* | [**list_sip_credential_list_mapping**](docs/DefaultApi.md#list_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*DefaultApi* | [**list_sip_domain**](docs/DefaultApi.md#list_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*DefaultApi* | [**list_sip_ip_access_control_list**](docs/DefaultApi.md#list_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*DefaultApi* | [**list_sip_ip_access_control_list_mapping**](docs/DefaultApi.md#list_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*DefaultApi* | [**list_sip_ip_address**](docs/DefaultApi.md#list_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*DefaultApi* | [**list_transcription**](docs/DefaultApi.md#list_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | +*DefaultApi* | [**list_usage_record**](docs/DefaultApi.md#list_usage_record) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | +*DefaultApi* | [**list_usage_record_all_time**](docs/DefaultApi.md#list_usage_record_all_time) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | +*DefaultApi* | [**list_usage_record_daily**](docs/DefaultApi.md#list_usage_record_daily) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | +*DefaultApi* | [**list_usage_record_last_month**](docs/DefaultApi.md#list_usage_record_last_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | +*DefaultApi* | [**list_usage_record_monthly**](docs/DefaultApi.md#list_usage_record_monthly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | +*DefaultApi* | [**list_usage_record_this_month**](docs/DefaultApi.md#list_usage_record_this_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | +*DefaultApi* | [**list_usage_record_today**](docs/DefaultApi.md#list_usage_record_today) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | +*DefaultApi* | [**list_usage_record_yearly**](docs/DefaultApi.md#list_usage_record_yearly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | +*DefaultApi* | [**list_usage_record_yesterday**](docs/DefaultApi.md#list_usage_record_yesterday) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | +*DefaultApi* | [**list_usage_trigger**](docs/DefaultApi.md#list_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*DefaultApi* | [**update_account**](docs/DefaultApi.md#update_account) | **POST** /2010-04-01/Accounts/{Sid}.json | +*DefaultApi* | [**update_address**](docs/DefaultApi.md#update_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**update_application**](docs/DefaultApi.md#update_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**update_call**](docs/DefaultApi.md#update_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**update_call_feedback**](docs/DefaultApi.md#update_call_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*DefaultApi* | [**update_call_recording**](docs/DefaultApi.md#update_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**update_conference**](docs/DefaultApi.md#update_conference) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*DefaultApi* | [**update_conference_recording**](docs/DefaultApi.md#update_conference_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**update_connect_app**](docs/DefaultApi.md#update_connect_app) | **POST** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**update_incoming_phone_number**](docs/DefaultApi.md#update_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**update_key**](docs/DefaultApi.md#update_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**update_member**](docs/DefaultApi.md#update_member) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*DefaultApi* | [**update_message**](docs/DefaultApi.md#update_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**update_outgoing_caller_id**](docs/DefaultApi.md#update_outgoing_caller_id) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**update_participant**](docs/DefaultApi.md#update_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**update_payments**](docs/DefaultApi.md#update_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | +*DefaultApi* | [**update_queue**](docs/DefaultApi.md#update_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**update_short_code**](docs/DefaultApi.md#update_short_code) | **POST** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*DefaultApi* | [**update_signing_key**](docs/DefaultApi.md#update_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**update_sip_credential**](docs/DefaultApi.md#update_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**update_sip_credential_list**](docs/DefaultApi.md#update_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**update_sip_domain**](docs/DefaultApi.md#update_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**update_sip_ip_access_control_list**](docs/DefaultApi.md#update_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**update_sip_ip_address**](docs/DefaultApi.md#update_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**update_siprec**](docs/DefaultApi.md#update_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | +*DefaultApi* | [**update_stream**](docs/DefaultApi.md#update_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | +*DefaultApi* | [**update_usage_trigger**](docs/DefaultApi.md#update_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | + + +## Documentation For Models + + - [AccountEnumStatus](docs/AccountEnumStatus.md) + - [AccountEnumType](docs/AccountEnumType.md) + - [ApiPeriodV2010PeriodAccount](docs/ApiPeriodV2010PeriodAccount.md) + - [ApiPeriodV2010PeriodAccountPeriodAddress](docs/ApiPeriodV2010PeriodAccountPeriodAddress.md) + - [ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber](docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md) + - [ApiPeriodV2010PeriodAccountPeriodApplication](docs/ApiPeriodV2010PeriodAccountPeriodApplication.md) + - [ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp](docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md) + - [ApiPeriodV2010PeriodAccountPeriodBalance](docs/ApiPeriodV2010PeriodAccountPeriodBalance.md) + - [ApiPeriodV2010PeriodAccountPeriodCall](docs/ApiPeriodV2010PeriodAccountPeriodCall.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodStream](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md) + - [ApiPeriodV2010PeriodAccountPeriodConference](docs/ApiPeriodV2010PeriodAccountPeriodConference.md) + - [ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording](docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant](docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md) + - [ApiPeriodV2010PeriodAccountPeriodConnectApp](docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md) + - [ApiPeriodV2010PeriodAccountPeriodKey](docs/ApiPeriodV2010PeriodAccountPeriodKey.md) + - [ApiPeriodV2010PeriodAccountPeriodMessage](docs/ApiPeriodV2010PeriodAccountPeriodMessage.md) + - [ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia](docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md) + - [ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback](docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md) + - [ApiPeriodV2010PeriodAccountPeriodNewKey](docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md) + - [ApiPeriodV2010PeriodAccountPeriodNewSigningKey](docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md) + - [ApiPeriodV2010PeriodAccountPeriodNotification](docs/ApiPeriodV2010PeriodAccountPeriodNotification.md) + - [ApiPeriodV2010PeriodAccountPeriodNotificationInstance](docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md) + - [ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId](docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md) + - [ApiPeriodV2010PeriodAccountPeriodQueue](docs/ApiPeriodV2010PeriodAccountPeriodQueue.md) + - [ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember](docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md) + - [ApiPeriodV2010PeriodAccountPeriodRecording](docs/ApiPeriodV2010PeriodAccountPeriodRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md) + - [ApiPeriodV2010PeriodAccountPeriodShortCode](docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md) + - [ApiPeriodV2010PeriodAccountPeriodSigningKey](docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md) + - [ApiPeriodV2010PeriodAccountPeriodToken](docs/ApiPeriodV2010PeriodAccountPeriodToken.md) + - [ApiPeriodV2010PeriodAccountPeriodTranscription](docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md) + - [ApiPeriodV2010PeriodAccountPeriodValidationRequest](docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md) + - [ApiV2010AccountIncomingPhoneNumberCapabilities](docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md) + - [ApiV2010AccountTokenIceServersInner](docs/ApiV2010AccountTokenIceServersInner.md) + - [AuthorizedConnectAppEnumPermission](docs/AuthorizedConnectAppEnumPermission.md) + - [CallEnumEvent](docs/CallEnumEvent.md) + - [CallEnumStatus](docs/CallEnumStatus.md) + - [CallFeedbackEnumIssues](docs/CallFeedbackEnumIssues.md) + - [CallFeedbackSummaryEnumStatus](docs/CallFeedbackSummaryEnumStatus.md) + - [CallRecordingEnumSource](docs/CallRecordingEnumSource.md) + - [CallRecordingEnumStatus](docs/CallRecordingEnumStatus.md) + - [ConferenceEnumReasonConferenceEnded](docs/ConferenceEnumReasonConferenceEnded.md) + - [ConferenceEnumStatus](docs/ConferenceEnumStatus.md) + - [ConferenceRecordingEnumSource](docs/ConferenceRecordingEnumSource.md) + - [ConferenceRecordingEnumStatus](docs/ConferenceRecordingEnumStatus.md) + - [ConnectAppEnumPermission](docs/ConnectAppEnumPermission.md) + - [DependentPhoneNumberEnumAddressRequirement](docs/DependentPhoneNumberEnumAddressRequirement.md) + - [DependentPhoneNumberEnumEmergencyStatus](docs/DependentPhoneNumberEnumEmergencyStatus.md) + - [IncomingPhoneNumberEnumAddressRequirement](docs/IncomingPhoneNumberEnumAddressRequirement.md) + - [IncomingPhoneNumberEnumEmergencyAddressStatus](docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberEnumEmergencyStatus](docs/IncomingPhoneNumberEnumEmergencyStatus.md) + - [IncomingPhoneNumberEnumVoiceReceiveMode](docs/IncomingPhoneNumberEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberLocalEnumAddressRequirement](docs/IncomingPhoneNumberLocalEnumAddressRequirement.md) + - [IncomingPhoneNumberLocalEnumEmergencyAddressStatus](docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberLocalEnumEmergencyStatus](docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md) + - [IncomingPhoneNumberLocalEnumVoiceReceiveMode](docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberMobileEnumAddressRequirement](docs/IncomingPhoneNumberMobileEnumAddressRequirement.md) + - [IncomingPhoneNumberMobileEnumEmergencyAddressStatus](docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberMobileEnumEmergencyStatus](docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md) + - [IncomingPhoneNumberMobileEnumVoiceReceiveMode](docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberTollFreeEnumAddressRequirement](docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md) + - [IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus](docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberTollFreeEnumEmergencyStatus](docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md) + - [IncomingPhoneNumberTollFreeEnumVoiceReceiveMode](docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md) + - [ListAccountResponse](docs/ListAccountResponse.md) + - [ListAddressResponse](docs/ListAddressResponse.md) + - [ListApplicationResponse](docs/ListApplicationResponse.md) + - [ListAuthorizedConnectAppResponse](docs/ListAuthorizedConnectAppResponse.md) + - [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md) + - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) + - [ListAvailablePhoneNumberMachineToMachineResponse](docs/ListAvailablePhoneNumberMachineToMachineResponse.md) + - [ListAvailablePhoneNumberMobileResponse](docs/ListAvailablePhoneNumberMobileResponse.md) + - [ListAvailablePhoneNumberNationalResponse](docs/ListAvailablePhoneNumberNationalResponse.md) + - [ListAvailablePhoneNumberSharedCostResponse](docs/ListAvailablePhoneNumberSharedCostResponse.md) + - [ListAvailablePhoneNumberTollFreeResponse](docs/ListAvailablePhoneNumberTollFreeResponse.md) + - [ListAvailablePhoneNumberVoipResponse](docs/ListAvailablePhoneNumberVoipResponse.md) + - [ListCallEventResponse](docs/ListCallEventResponse.md) + - [ListCallNotificationResponse](docs/ListCallNotificationResponse.md) + - [ListCallRecordingResponse](docs/ListCallRecordingResponse.md) + - [ListCallResponse](docs/ListCallResponse.md) + - [ListConferenceRecordingResponse](docs/ListConferenceRecordingResponse.md) + - [ListConferenceResponse](docs/ListConferenceResponse.md) + - [ListConnectAppResponse](docs/ListConnectAppResponse.md) + - [ListDependentPhoneNumberResponse](docs/ListDependentPhoneNumberResponse.md) + - [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) + - [ListIncomingPhoneNumberAssignedAddOnResponse](docs/ListIncomingPhoneNumberAssignedAddOnResponse.md) + - [ListIncomingPhoneNumberLocalResponse](docs/ListIncomingPhoneNumberLocalResponse.md) + - [ListIncomingPhoneNumberMobileResponse](docs/ListIncomingPhoneNumberMobileResponse.md) + - [ListIncomingPhoneNumberResponse](docs/ListIncomingPhoneNumberResponse.md) + - [ListIncomingPhoneNumberTollFreeResponse](docs/ListIncomingPhoneNumberTollFreeResponse.md) + - [ListKeyResponse](docs/ListKeyResponse.md) + - [ListMediaResponse](docs/ListMediaResponse.md) + - [ListMemberResponse](docs/ListMemberResponse.md) + - [ListMessageResponse](docs/ListMessageResponse.md) + - [ListNotificationResponse](docs/ListNotificationResponse.md) + - [ListOutgoingCallerIdResponse](docs/ListOutgoingCallerIdResponse.md) + - [ListParticipantResponse](docs/ListParticipantResponse.md) + - [ListQueueResponse](docs/ListQueueResponse.md) + - [ListRecordingAddOnResultPayloadResponse](docs/ListRecordingAddOnResultPayloadResponse.md) + - [ListRecordingAddOnResultResponse](docs/ListRecordingAddOnResultResponse.md) + - [ListRecordingResponse](docs/ListRecordingResponse.md) + - [ListRecordingTranscriptionResponse](docs/ListRecordingTranscriptionResponse.md) + - [ListShortCodeResponse](docs/ListShortCodeResponse.md) + - [ListSigningKeyResponse](docs/ListSigningKeyResponse.md) + - [ListSipAuthCallsCredentialListMappingResponse](docs/ListSipAuthCallsCredentialListMappingResponse.md) + - [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md) + - [ListSipAuthRegistrationsCredentialListMappingResponse](docs/ListSipAuthRegistrationsCredentialListMappingResponse.md) + - [ListSipCredentialListMappingResponse](docs/ListSipCredentialListMappingResponse.md) + - [ListSipCredentialListResponse](docs/ListSipCredentialListResponse.md) + - [ListSipCredentialResponse](docs/ListSipCredentialResponse.md) + - [ListSipDomainResponse](docs/ListSipDomainResponse.md) + - [ListSipIpAccessControlListMappingResponse](docs/ListSipIpAccessControlListMappingResponse.md) + - [ListSipIpAccessControlListResponse](docs/ListSipIpAccessControlListResponse.md) + - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) + - [ListTranscriptionResponse](docs/ListTranscriptionResponse.md) + - [ListUsageRecordAllTimeResponse](docs/ListUsageRecordAllTimeResponse.md) + - [ListUsageRecordDailyResponse](docs/ListUsageRecordDailyResponse.md) + - [ListUsageRecordLastMonthResponse](docs/ListUsageRecordLastMonthResponse.md) + - [ListUsageRecordMonthlyResponse](docs/ListUsageRecordMonthlyResponse.md) + - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) + - [ListUsageRecordThisMonthResponse](docs/ListUsageRecordThisMonthResponse.md) + - [ListUsageRecordTodayResponse](docs/ListUsageRecordTodayResponse.md) + - [ListUsageRecordYearlyResponse](docs/ListUsageRecordYearlyResponse.md) + - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) + - [ListUsageTriggerResponse](docs/ListUsageTriggerResponse.md) + - [MessageEnumDirection](docs/MessageEnumDirection.md) + - [MessageEnumStatus](docs/MessageEnumStatus.md) + - [MessageEnumTrafficType](docs/MessageEnumTrafficType.md) + - [MessageFeedbackEnumOutcome](docs/MessageFeedbackEnumOutcome.md) + - [ParticipantEnumStatus](docs/ParticipantEnumStatus.md) + - [RecordingAddOnResultEnumStatus](docs/RecordingAddOnResultEnumStatus.md) + - [RecordingEnumSource](docs/RecordingEnumSource.md) + - [RecordingEnumStatus](docs/RecordingEnumStatus.md) + - [RecordingTranscriptionEnumStatus](docs/RecordingTranscriptionEnumStatus.md) + - [SiprecEnumStatus](docs/SiprecEnumStatus.md) + - [StreamEnumStatus](docs/StreamEnumStatus.md) + - [TranscriptionEnumStatus](docs/TranscriptionEnumStatus.md) + - [UsageRecordAllTimeEnumCategory](docs/UsageRecordAllTimeEnumCategory.md) + - [UsageRecordDailyEnumCategory](docs/UsageRecordDailyEnumCategory.md) + - [UsageRecordEnumCategory](docs/UsageRecordEnumCategory.md) + - [UsageRecordLastMonthEnumCategory](docs/UsageRecordLastMonthEnumCategory.md) + - [UsageRecordMonthlyEnumCategory](docs/UsageRecordMonthlyEnumCategory.md) + - [UsageRecordThisMonthEnumCategory](docs/UsageRecordThisMonthEnumCategory.md) + - [UsageRecordTodayEnumCategory](docs/UsageRecordTodayEnumCategory.md) + - [UsageRecordYearlyEnumCategory](docs/UsageRecordYearlyEnumCategory.md) + - [UsageRecordYesterdayEnumCategory](docs/UsageRecordYesterdayEnumCategory.md) + - [UsageTriggerEnumRecurring](docs/UsageTriggerEnumRecurring.md) + - [UsageTriggerEnumTriggerField](docs/UsageTriggerEnumTriggerField.md) + - [UsageTriggerEnumUsageCategory](docs/UsageTriggerEnumUsageCategory.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + +support@twilio.com + diff --git a/twil-api/docs/AccountEnumStatus.md b/twil-api/docs/AccountEnumStatus.md new file mode 100644 index 0000000..24f663e --- /dev/null +++ b/twil-api/docs/AccountEnumStatus.md @@ -0,0 +1,10 @@ +# AccountEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/AccountEnumType.md b/twil-api/docs/AccountEnumType.md new file mode 100644 index 0000000..a040663 --- /dev/null +++ b/twil-api/docs/AccountEnumType.md @@ -0,0 +1,10 @@ +# AccountEnumType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccount.md b/twil-api/docs/ApiPeriodV2010PeriodAccount.md new file mode 100644 index 0000000..bc5993f --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccount.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_token** | Option<**String**> | The authorization token for this account. This token should be kept a secret, so no sharing. | [optional] +**date_created** | Option<**String**> | The date that this account was created, in GMT in RFC 2822 format | [optional] +**date_updated** | Option<**String**> | The date that this account was last updated, in GMT in RFC 2822 format. | [optional] +**friendly_name** | Option<**String**> | A human readable description of this account, up to 64 characters long. By default the FriendlyName is your email address. | [optional] +**owner_account_sid** | Option<**String**> | The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**status** | Option<[**crate::models::AccountEnumStatus**](account_enum_status.md)> | | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A Map of various subresources available for the given Account Instance | [optional] +**r#type** | Option<[**crate::models::AccountEnumType**](account_enum_type.md)> | | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md new file mode 100644 index 0000000..534c524 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md @@ -0,0 +1,26 @@ +# ApiPeriodV2010PeriodAccountPeriodAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource. | [optional] +**city** | Option<**String**> | The city in which the address is located. | [optional] +**customer_name** | Option<**String**> | The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**iso_country** | Option<**String**> | The ISO country code of the address. | [optional] +**postal_code** | Option<**String**> | The postal code of the address. | [optional] +**region** | Option<**String**> | The state or region of the address. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Address resource. | [optional] +**street** | Option<**String**> | The number and street address of the address. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**emergency_enabled** | Option<**bool**> | Whether emergency calling has been enabled on this number. | [optional] +**validated** | Option<**bool**> | Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid. | [optional] +**verified** | Option<**bool**> | Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid. | [optional] +**street_secondary** | Option<**String**> | The additional number and street address of the address. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md new file mode 100644 index 0000000..3f57fdd --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md @@ -0,0 +1,36 @@ +# ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the DependentPhoneNumber resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database. Can be: `true` or `false`. Caller ID lookups can cost $0.01 each. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**address_requirements** | Option<[**crate::models::DependentPhoneNumberEnumAddressRequirement**](dependent_phone_number_enum_address_requirement.md)> | | [optional] +**capabilities** | Option<[**serde_json::Value**](.md)> | The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**emergency_status** | Option<[**crate::models::DependentPhoneNumberEnumEmergencyStatus**](dependent_phone_number_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from the phone number. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md new file mode 100644 index 0000000..9c4e89d --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md @@ -0,0 +1,31 @@ +# ApiPeriodV2010PeriodAccountPeriodApplication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**message_status_callback** | Option<**String**> | The URL we call using a POST method to send message status information to your application. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Application resource. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_status_callback** | Option<**String**> | The URL we call using a POST method to send status information to your application about SMS messages that refer to the application. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number assigned to this application receives a call. | [optional] +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md new file mode 100644 index 0000000..4d23af8 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource. | [optional] +**connect_app_company_name** | Option<**String**> | The company name set for the Connect App. | [optional] +**connect_app_description** | Option<**String**> | A detailed description of the Connect App. | [optional] +**connect_app_friendly_name** | Option<**String**> | The name of the Connect App. | [optional] +**connect_app_homepage_url** | Option<**String**> | The public URL for the Connect App. | [optional] +**connect_app_sid** | Option<**String**> | The SID that we assigned to the Connect App. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**permissions** | Option<[**Vec**](authorized_connect_app_enum_permission.md)> | The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md new file mode 100644 index 0000000..39dc005 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country_code** | Option<**String**> | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country. | [optional] +**country** | Option<**String**> | The name of the country. | [optional] +**uri** | Option<**String**> | The URI of the Country resource, relative to `https://api.twilio.com`. | [optional] +**beta** | Option<**bool**> | Whether all phone numbers available in the country are new to the Twilio platform. `true` if they are and `false` if all numbers are not in the Twilio Phone Number Beta program. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related AvailablePhoneNumber resources identified by their URIs relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md new file mode 100644 index 0000000..439be46 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md new file mode 100644 index 0000000..e690c9b --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md new file mode 100644 index 0000000..90b24e1 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md new file mode 100644 index 0000000..af41c4a --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md new file mode 100644 index 0000000..b13e70b --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md new file mode 100644 index 0000000..51a475e --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md new file mode 100644 index 0000000..3fe12e4 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md new file mode 100644 index 0000000..967f840 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md @@ -0,0 +1,13 @@ +# ApiPeriodV2010PeriodAccountPeriodBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique SID identifier of the Account. | [optional] +**balance** | Option<**String**> | The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information | [optional] +**currency** | Option<**String**> | The units of currency for the account balance | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCall.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCall.md new file mode 100644 index 0000000..250ac41 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCall.md @@ -0,0 +1,36 @@ +# ApiPeriodV2010PeriodAccountPeriodCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that we created to identify this Call resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**parent_call_sid** | Option<**String**> | The SID that identifies the call that created this leg. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. | [optional] +**to** | Option<**String**> | The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. | [optional] +**to_formatted** | Option<**String**> | The phone number, SIP address or Client identifier that received this call. Formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). | [optional] +**from** | Option<**String**> | The phone number, SIP address, Client identifier or SIM SID that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. | [optional] +**from_formatted** | Option<**String**> | The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). | [optional] +**phone_number_sid** | Option<**String**> | If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. | [optional] +**status** | Option<[**crate::models::CallEnumStatus**](call_enum_status.md)> | | [optional] +**start_time** | Option<**String**> | The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. | [optional] +**end_time** | Option<**String**> | The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. | [optional] +**duration** | Option<**String**> | The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. | [optional] +**price** | Option<**String**> | The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. | [optional] +**price_unit** | Option<**String**> | The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls. | [optional] +**direction** | Option<**String**> | A string describing the direction of the call. Can be: `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `` verb. Using [Elastic SIP Trunking](https://www.twilio.com/docs/sip-trunking), the values can be [`trunking-terminating`](https://www.twilio.com/docs/sip-trunking#termination) for outgoing calls from your communications infrastructure to the PSTN or [`trunking-originating`](https://www.twilio.com/docs/sip-trunking#origination) for incoming calls to your communications infrastructure from the PSTN. | [optional] +**answered_by** | Option<**String**> | Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise. | [optional] +**api_version** | Option<**String**> | The API version used to create the call. | [optional] +**forwarded_from** | Option<**String**> | The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty. | [optional] +**group_sid** | Option<**String**> | The Group SID associated with this call. If no Group is associated with the call, the field is empty. | [optional] +**caller_name** | Option<**String**> | The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty. | [optional] +**queue_time** | Option<**String**> | The wait time in milliseconds before the call is placed. | [optional] +**trunk_sid** | Option<**String**> | The unique identifier of the trunk resource that was used for this call. The field is empty if the call was not made using a SIP trunk or if the call is not terminated. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of subresources available to this call, identified by their URIs relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md new file mode 100644 index 0000000..093fbbb --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md @@ -0,0 +1,12 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request** | Option<[**serde_json::Value**](.md)> | Contains a dictionary representing the request of the call. | [optional] +**response** | Option<[**serde_json::Value**](.md)> | Contains a dictionary representing the call response, including a list of the call events. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md new file mode 100644 index 0000000..9ac1b80 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**issues** | Option<[**Vec**](call_feedback_enum_issues.md)> | A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. | [optional] +**quality_score** | Option<**i32**> | `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md new file mode 100644 index 0000000..45cd0c5 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [optional] +**call_count** | Option<**i32**> | The total number of calls. | [optional] +**call_feedback_count** | Option<**i32**> | The total number of calls with a feedback entry. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC. | [optional] +**include_subaccounts** | Option<**bool**> | Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`. | [optional] +**issues** | Option<[**Vec**](serde_json::Value.md)> | A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`. | [optional] +**quality_score_average** | Option<**f32**> | The average QualityScore of the feedback entries. | [optional] +**quality_score_median** | Option<**f32**> | The median QualityScore of the feedback entries. | [optional] +**quality_score_standard_deviation** | Option<**f32**> | The standard deviation of the quality scores. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC. | [optional] +**status** | Option<[**crate::models::CallFeedbackSummaryEnumStatus**](call_feedback_summary_enum_status.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md new file mode 100644 index 0000000..f4e88fc --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the Call Notification resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Call Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md new file mode 100644 index 0000000..4d2f7e7 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the Call Notification resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**request_variables** | Option<**String**> | The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. | [optional] +**response_body** | Option<**String**> | The HTTP body returned by your server. | [optional] +**response_headers** | Option<**String**> | The HTTP headers returned by your server. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Call Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md new file mode 100644 index 0000000..930269c --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md @@ -0,0 +1,28 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used to make the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording, if a conference recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Recording resource. | [optional] +**price** | Option<**f32**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::CallRecordingEnumStatus**](call_recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. | [optional] +**source** | Option<[**crate::models::CallRecordingEnumSource**](call_recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**track** | Option<**String**> | The recorded track. Can be: `inbound`, `outbound`, or `both`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md new file mode 100644 index 0000000..bac3fcc --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF. | [optional] +**sid** | Option<**String**> | The SID of the Payments resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md new file mode 100644 index 0000000..a07b794 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The SID of the Siprec resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [optional] +**name** | Option<**String**> | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. | [optional] +**status** | Option<[**crate::models::SiprecEnumStatus**](siprec_enum_status.md)> | | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md new file mode 100644 index 0000000..16f3179 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The SID of the Stream resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [optional] +**name** | Option<**String**> | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. | [optional] +**status** | Option<[**crate::models::StreamEnumStatus**](stream_enum_status.md)> | | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md new file mode 100644 index 0000000..dbaca72 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. | [optional] +**sid** | Option<**String**> | The SID that uniquely identifies this User Defined Message. | [optional] +**date_created** | Option<**String**> | The date that this User Defined Message was created, given in RFC 2822 format. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md new file mode 100644 index 0000000..1127748 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. | [optional] +**sid** | Option<**String**> | The SID that uniquely identifies this User Defined Message Subscription. | [optional] +**date_created** | Option<**String**> | The date that this User Defined Message Subscription was created, given in RFC 2822 format. | [optional] +**uri** | Option<**String**> | The URI of the User Defined Message Subscription Resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConference.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConference.md new file mode 100644 index 0000000..9e63923 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConference.md @@ -0,0 +1,22 @@ +# ApiPeriodV2010PeriodAccountPeriodConference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Conference resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**api_version** | Option<**String**> | The API version used to create this conference. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this conference room. Maxiumum length is 128 characters. | [optional] +**region** | Option<**String**> | A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this Conference resource. | [optional] +**status** | Option<[**crate::models::ConferenceEnumStatus**](conference_enum_status.md)> | | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs relative to `https://api.twilio.com`. | [optional] +**reason_conference_ended** | Option<[**crate::models::ConferenceEnumReasonConferenceEnded**](conference_enum_reason_conference_ended.md)> | | [optional] +**call_sid_ending_conference** | Option<**String**> | The call SID that caused the conference to end. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md new file mode 100644 index 0000000..873f892 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Conference Recording resource is associated with. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Conference Recording resource. | [optional] +**price** | Option<**String**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::ConferenceRecordingEnumStatus**](conference_recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. | [optional] +**source** | Option<[**crate::models::ConferenceRecordingEnumSource**](conference_recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md new file mode 100644 index 0000000..36ad84f --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Participant resource is associated with. | [optional] +**label** | Option<**String**> | The user-specified label of this participant, if one was given when the participant was created. This may be used to fetch, update or delete the participant. | [optional] +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | [optional] +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | [optional] +**conference_sid** | Option<**String**> | The SID of the conference the participant is in. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**end_conference_on_exit** | Option<**bool**> | Whether the conference ends when the participant leaves. Can be: `true` or `false` and the default is `false`. If `true`, the conference ends and all other participants drop out when the participant leaves. | [optional] +**muted** | Option<**bool**> | Whether the participant is muted. Can be `true` or `false`. | [optional] +**hold** | Option<**bool**> | Whether the participant is on hold. Can be `true` or `false`. | [optional] +**start_conference_on_enter** | Option<**bool**> | Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. | [optional] +**status** | Option<[**crate::models::ParticipantEnumStatus**](participant_enum_status.md)> | | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md new file mode 100644 index 0000000..d51f319 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource. | [optional] +**authorize_redirect_url** | Option<**String**> | The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | [optional] +**company_name** | Option<**String**> | The company name set for the Connect App. | [optional] +**deauthorize_callback_method** | Option<**String**> | The HTTP method we use to call `deauthorize_callback_url`. | [optional] +**deauthorize_callback_url** | Option<**String**> | The URL we call using the `deauthorize_callback_method` to de-authorize the Connect App. | [optional] +**description** | Option<**String**> | The description of the Connect App. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**homepage_url** | Option<**String**> | The public URL where users can obtain more information about this Connect App. | [optional] +**permissions** | Option<[**Vec**](connect_app_enum_permission.md)> | The set of permissions that your ConnectApp requests. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the ConnectApp resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md new file mode 100644 index 0000000..deae24e --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this IncomingPhoneNumber resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberEnumAddressRequirement**](incoming_phone_number_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this IncomingPhoneNumber resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**](incoming_phone_number_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberEnumEmergencyStatus**](incoming_phone_number_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberEnumEmergencyAddressStatus**](incoming_phone_number_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md new file mode 100644 index 0000000..4956448 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**resource_sid** | Option<**String**> | The SID of the Phone Number to which the Add-on is assigned. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**description** | Option<**String**> | A short description of the functionality that the Add-on provides. | [optional] +**configuration** | Option<[**serde_json::Value**](.md)> | A JSON string that represents the current configuration of this Add-on installation. | [optional] +**unique_name** | Option<**String**> | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md new file mode 100644 index 0000000..43815ea --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**resource_sid** | Option<**String**> | The SID of the Phone Number to which the Add-on is assigned. | [optional] +**assigned_add_on_sid** | Option<**String**> | The SID that uniquely identifies the assigned Add-on installation. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**product_name** | Option<**String**> | A string that you assigned to describe the Product this Extension is used within. | [optional] +**unique_name** | Option<**String**> | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**enabled** | Option<**bool**> | Whether the Extension will be invoked. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md new file mode 100644 index 0000000..652bf3b --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberLocalEnumAddressRequirement**](incoming_phone_number_local_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberLocalEnumVoiceReceiveMode**](incoming_phone_number_local_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when this phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberLocalEnumEmergencyStatus**](incoming_phone_number_local_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberLocalEnumEmergencyAddressStatus**](incoming_phone_number_local_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md new file mode 100644 index 0000000..b013f84 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberMobileEnumAddressRequirement**](incoming_phone_number_mobile_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberMobileEnumVoiceReceiveMode**](incoming_phone_number_mobile_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberMobileEnumEmergencyStatus**](incoming_phone_number_mobile_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberMobileEnumEmergencyAddressStatus**](incoming_phone_number_mobile_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md new file mode 100644 index 0000000..94c17c5 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumAddressRequirement**](incoming_phone_number_toll_free_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode**](incoming_phone_number_toll_free_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyStatus**](incoming_phone_number_toll_free_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus**](incoming_phone_number_toll_free_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodKey.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodKey.md new file mode 100644 index 0000000..7e972f9 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodKey.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Key resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md new file mode 100644 index 0000000..79f992d --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md @@ -0,0 +1,30 @@ +# ApiPeriodV2010PeriodAccountPeriodMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | Option<**String**> | The message text. Can be up to 1,600 characters long. | [optional] +**num_segments** | Option<**String**> | The number of segments that make up the complete message. A message body that is too large to be sent in a single SMS message is segmented and charged as multiple messages. Inbound messages over 160 characters are reassembled when the message is received. Note: When using a Messaging Service to send messages, `num_segments` will always be 0 in Twilio's response to your API request. | [optional] +**direction** | Option<[**crate::models::MessageEnumDirection**](message_enum_direction.md)> | | [optional] +**from** | Option<**String**> | The phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or [Wireless SIM](https://www.twilio.com/docs/wireless/tutorials/communications-guides/how-to-send-and-receive-text-messages) that initiated the message. For incoming messages, this will be the number of the sending phone. For outgoing messages, this value will be one of your Twilio phone numbers or the alphanumeric sender ID used. | [optional] +**to** | Option<**String**> | The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format that received the message. For incoming messages, this will be one of your Twilio phone numbers. For outgoing messages, this will be the sending phone. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**price** | Option<**String**> | The amount billed for the message, in the currency specified by `price_unit`. Note that your account is charged for each segment we send to the handset. Populated after the message has been sent. May not be immediately available. | [optional] +**error_message** | Option<**String**> | The description of the `error_code` if your message `status` is `failed` or `undelivered`. If the message was successful, this value is null. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that sent the message that created the resource. | [optional] +**num_media** | Option<**String**> | The number of media files associated with the message. A message can send up to 10 media files. | [optional] +**status** | Option<[**crate::models::MessageEnumStatus**](message_enum_status.md)> | | [optional] +**messaging_service_sid** | Option<**String**> | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) used with the message. The value is null if a Messaging Service was not used. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Message resource. | [optional] +**date_sent** | Option<**String**> | The date and time in GMT that the resource was sent specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. For outgoing messages, this is when we sent the message. For incoming messages, this is when we made the HTTP request to your application. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**i32**> | The error code returned if your message `status` is `failed` or `undelivered`. The error_code provides more information about the failure. If the message was successful, this value is null. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**api_version** | Option<**String**> | The API version used to process the message. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md new file mode 100644 index 0000000..83f506b --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Media resource. | [optional] +**content_type** | Option<**String**> | The default [mime-type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif` | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**parent_sid** | Option<**String**> | The SID of the resource that created the media. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this Media resource. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md new file mode 100644 index 0000000..46effa5 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource. | [optional] +**message_sid** | Option<**String**> | The SID of the Message resource for which the feedback was provided. | [optional] +**outcome** | Option<[**crate::models::MessageFeedbackEnumOutcome**](message_feedback_enum_outcome.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md new file mode 100644 index 0000000..e0c7720 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodNewKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**secret** | Option<**String**> | The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md new file mode 100644 index 0000000..35c7471 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodNewSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the NewSigningKey resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**secret** | Option<**String**> | The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md new file mode 100644 index 0000000..93dcb3e --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md new file mode 100644 index 0000000..cf44a36 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**request_variables** | Option<**String**> | The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. | [optional] +**response_body** | Option<**String**> | The HTTP body returned by your server. | [optional] +**response_headers** | Option<**String**> | The HTTP headers returned by your server. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md new file mode 100644 index 0000000..2ee638f --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the OutgoingCallerId resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md new file mode 100644 index 0000000..d343168 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodQueue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**current_size** | Option<**i32**> | The number of calls currently in the queue. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this resource. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource. | [optional] +**average_wait_time** | Option<**i32**> | The average wait time in seconds of the members in this queue. This is calculated at the time of the request. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this Queue resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**max_size** | Option<**i32**> | The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md new file mode 100644 index 0000000..1cfff80 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Member resource is associated with. | [optional] +**date_enqueued** | Option<**String**> | The date that the member was enqueued, given in RFC 2822 format. | [optional] +**position** | Option<**i32**> | This member's current position in the queue. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**wait_time** | Option<**i32**> | The number of seconds the member has been in the queue. | [optional] +**queue_sid** | Option<**String**> | The SID of the Queue the member is in. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md new file mode 100644 index 0000000..f2408be --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md @@ -0,0 +1,29 @@ +# ApiPeriodV2010PeriodAccountPeriodRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used during the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. This will always refer to the parent leg of a two-leg call. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording, if a conference recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Recording resource. | [optional] +**price** | Option<**String**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::RecordingEnumStatus**](recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call). | [optional] +**source** | Option<[**crate::models::RecordingEnumSource**](recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] +**media_url** | Option<**String**> | The URL of the media file associated with this recording resource. When stored externally, this is the full URL location of the media file. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md new file mode 100644 index 0000000..6593b8c --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Recording AddOnResult resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource. | [optional] +**status** | Option<[**crate::models::RecordingAddOnResultEnumStatus**](recording_add_on_result_enum_status.md)> | | [optional] +**add_on_sid** | Option<**String**> | The SID of the Add-on to which the result belongs. | [optional] +**add_on_configuration_sid** | Option<**String**> | The SID of the Add-on configuration. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_completed** | Option<**String**> | The date and time in GMT that the result was completed specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**reference_sid** | Option<**String**> | The SID of the recording to which the AddOnResult resource belongs. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md new file mode 100644 index 0000000..a63b953 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Recording AddOnResult Payload resource. | [optional] +**add_on_result_sid** | Option<**String**> | The SID of the AddOnResult to which the payload belongs. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource. | [optional] +**label** | Option<**String**> | The string provided by the vendor that describes the payload. | [optional] +**add_on_sid** | Option<**String**> | The SID of the Add-on to which the result belongs. | [optional] +**add_on_configuration_sid** | Option<**String**> | The SID of the Add-on configuration. | [optional] +**content_type** | Option<**String**> | The MIME type of the payload. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**reference_sid** | Option<**String**> | The SID of the recording to which the AddOnResult resource that contains the payload belongs. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md new file mode 100644 index 0000000..2075798 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the transcription. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**duration** | Option<**String**> | The duration of the transcribed audio in seconds. | [optional] +**price** | Option<**f32**> | The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**recording_sid** | Option<**String**> | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Transcription resource. | [optional] +**status** | Option<[**crate::models::RecordingTranscriptionEnumStatus**](recording_transcription_enum_status.md)> | | [optional] +**transcription_text** | Option<**String**> | The text content of the transcription. | [optional] +**r#type** | Option<**String**> | The transcription type. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md new file mode 100644 index 0000000..52c1042 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md @@ -0,0 +1,22 @@ +# ApiPeriodV2010PeriodAccountPeriodShortCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session when an SMS message is sent to this short code. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. | [optional] +**short_code** | Option<**String**> | The short code. e.g., 894546. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this ShortCode resource. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when receiving an incoming SMS message to this short code. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md new file mode 100644 index 0000000..d81e182 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | | [optional] +**friendly_name** | Option<**String**> | | [optional] +**date_created** | Option<**String**> | | [optional] +**date_updated** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md new file mode 100644 index 0000000..252eb09 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text that describes the CredentialList, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of credentials associated with this credential list. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md new file mode 100644 index 0000000..4b31434 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**credential_list_sid** | Option<**String**> | The unique id that identifies the credential list that includes this credential. | [optional] +**username** | Option<**String**> | The username for this credential. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md new file mode 100644 index 0000000..c10ccfc --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md @@ -0,0 +1,31 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource. | [optional] +**api_version** | Option<**String**> | The API version used to process the call. | [optional] +**auth_type** | Option<**String**> | The types of authentication you have mapped to your domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If you have both defined for your domain, both will be returned in a comma delimited string. If `auth_type` is not defined, the domain will not be able to receive any traffic. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**domain_name** | Option<**String**> | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\" and must end with `sip.twilio.com`. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the SipDomain resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_status_callback_method** | Option<**String**> | The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. | [optional] +**voice_status_callback_url** | Option<**String**> | The URL that we call to pass status parameters (such as call ended) to your application. | [optional] +**voice_url** | Option<**String**> | The URL we call using the `voice_method` when the domain receives a call. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of mapping resources associated with the SIP Domain resource identified by their relative URIs. | [optional] +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. | [optional] +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | [optional] +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md new file mode 100644 index 0000000..fc3c3ee --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the CredentialListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md new file mode 100644 index 0000000..30efa17 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the IpAccessControlListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md new file mode 100644 index 0000000..cdbaba1 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the CredentialListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md new file mode 100644 index 0000000..1157f54 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**domain_sid** | Option<**String**> | The unique string that is created to identify the SipDomain resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md new file mode 100644 index 0000000..b6c1cd2 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**domain_sid** | Option<**String**> | The unique string that is created to identify the SipDomain resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md new file mode 100644 index 0000000..b81f6bf --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text, up to 255 characters long. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of the IpAddress resources associated with this IP access control list resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md new file mode 100644 index 0000000..918e76b --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 255 characters long. | [optional] +**ip_address** | Option<**String**> | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | [optional] +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | [optional] +**ip_access_control_list_sid** | Option<**String**> | The unique id of the IpAccessControlList resource that includes this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodToken.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodToken.md new file mode 100644 index 0000000..3b17489 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodToken.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**ice_servers** | Option<[**Vec**](api_v2010_account_token_ice_servers_inner.md)> | An array representing the ephemeral credentials and the STUN and TURN server URIs. | [optional] +**password** | Option<**String**> | The temporary password that the username will use when authenticating with Twilio. | [optional] +**ttl** | Option<**String**> | The duration in seconds for which the username and password are valid. | [optional] +**username** | Option<**String**> | The temporary username that uniquely identifies a Token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md new file mode 100644 index 0000000..03d9bd8 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the transcription. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**duration** | Option<**String**> | The duration of the transcribed audio in seconds. | [optional] +**price** | Option<**f32**> | The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**recording_sid** | Option<**String**> | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Transcription resource. | [optional] +**status** | Option<[**crate::models::TranscriptionEnumStatus**](transcription_enum_status.md)> | | [optional] +**transcription_text** | Option<**String**> | The text content of the transcription. | [optional] +**r#type** | Option<**String**> | The transcription type. Can only be: `fast`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md new file mode 100644 index 0000000..3856974 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordEnumCategory**](usage_record_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md new file mode 100644 index 0000000..04b764a --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordAllTimeEnumCategory**](usage_record_all_time_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md new file mode 100644 index 0000000..adae96a --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordDailyEnumCategory**](usage_record_daily_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md new file mode 100644 index 0000000..2e95db0 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordLastMonthEnumCategory**](usage_record_last_month_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md new file mode 100644 index 0000000..1a25ea5 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordMonthlyEnumCategory**](usage_record_monthly_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md new file mode 100644 index 0000000..875e4dc --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordThisMonthEnumCategory**](usage_record_this_month_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md new file mode 100644 index 0000000..1c8d4f9 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordTodayEnumCategory**](usage_record_today_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md new file mode 100644 index 0000000..abded2d --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordYearlyEnumCategory**](usage_record_yearly_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md new file mode 100644 index 0000000..228fed4 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordYesterdayEnumCategory**](usage_record_yesterday_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md new file mode 100644 index 0000000..0763465 --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md @@ -0,0 +1,26 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**callback_method** | Option<**String**> | The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. | [optional] +**callback_url** | Option<**String**> | The URL we call using the `callback_method` when the trigger fires. | [optional] +**current_value** | Option<**String**> | The current value of the field the trigger is watching. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_fired** | Option<**String**> | The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the trigger. | [optional] +**recurring** | Option<[**crate::models::UsageTriggerEnumRecurring**](usage_trigger_enum_recurring.md)> | | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the UsageTrigger resource. | [optional] +**trigger_by** | Option<[**crate::models::UsageTriggerEnumTriggerField**](usage_trigger_enum_trigger_field.md)> | | [optional] +**trigger_value** | Option<**String**> | The value at which the trigger will fire. Must be a positive, numeric value. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage_category** | Option<[**crate::models::UsageTriggerEnumUsageCategory**](usage_trigger_enum_usage_category.md)> | | [optional] +**usage_record_uri** | Option<**String**> | The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md new file mode 100644 index 0000000..8687e6f --- /dev/null +++ b/twil-api/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodValidationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the Caller ID. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**phone_number** | Option<**String**> | The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**validation_code** | Option<**String**> | The 6 digit validation code that someone must enter to validate the Caller ID when `phone_number` is called. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md b/twil-api/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md new file mode 100644 index 0000000..1537e34 --- /dev/null +++ b/twil-api/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md @@ -0,0 +1,14 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mms** | Option<**bool**> | | [optional] +**sms** | Option<**bool**> | | [optional] +**voice** | Option<**bool**> | | [optional] +**fax** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md b/twil-api/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md new file mode 100644 index 0000000..04c1881 --- /dev/null +++ b/twil-api/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md @@ -0,0 +1,14 @@ +# ApiV2010AccountIncomingPhoneNumberCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mms** | Option<**bool**> | | [optional] +**sms** | Option<**bool**> | | [optional] +**voice** | Option<**bool**> | | [optional] +**fax** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ApiV2010AccountTokenIceServersInner.md b/twil-api/docs/ApiV2010AccountTokenIceServersInner.md new file mode 100644 index 0000000..e15b9dd --- /dev/null +++ b/twil-api/docs/ApiV2010AccountTokenIceServersInner.md @@ -0,0 +1,14 @@ +# ApiV2010AccountTokenIceServersInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] +**urls** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/AuthorizedConnectAppEnumPermission.md b/twil-api/docs/AuthorizedConnectAppEnumPermission.md new file mode 100644 index 0000000..734f65d --- /dev/null +++ b/twil-api/docs/AuthorizedConnectAppEnumPermission.md @@ -0,0 +1,10 @@ +# AuthorizedConnectAppEnumPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallEnumEvent.md b/twil-api/docs/CallEnumEvent.md new file mode 100644 index 0000000..1401bec --- /dev/null +++ b/twil-api/docs/CallEnumEvent.md @@ -0,0 +1,10 @@ +# CallEnumEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallEnumStatus.md b/twil-api/docs/CallEnumStatus.md new file mode 100644 index 0000000..2e98508 --- /dev/null +++ b/twil-api/docs/CallEnumStatus.md @@ -0,0 +1,10 @@ +# CallEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallFeedbackEnumIssues.md b/twil-api/docs/CallFeedbackEnumIssues.md new file mode 100644 index 0000000..cac876c --- /dev/null +++ b/twil-api/docs/CallFeedbackEnumIssues.md @@ -0,0 +1,10 @@ +# CallFeedbackEnumIssues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallFeedbackSummaryEnumStatus.md b/twil-api/docs/CallFeedbackSummaryEnumStatus.md new file mode 100644 index 0000000..659cd56 --- /dev/null +++ b/twil-api/docs/CallFeedbackSummaryEnumStatus.md @@ -0,0 +1,10 @@ +# CallFeedbackSummaryEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallRecordingEnumSource.md b/twil-api/docs/CallRecordingEnumSource.md new file mode 100644 index 0000000..50ad1a3 --- /dev/null +++ b/twil-api/docs/CallRecordingEnumSource.md @@ -0,0 +1,10 @@ +# CallRecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/CallRecordingEnumStatus.md b/twil-api/docs/CallRecordingEnumStatus.md new file mode 100644 index 0000000..8a160c3 --- /dev/null +++ b/twil-api/docs/CallRecordingEnumStatus.md @@ -0,0 +1,10 @@ +# CallRecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ConferenceEnumReasonConferenceEnded.md b/twil-api/docs/ConferenceEnumReasonConferenceEnded.md new file mode 100644 index 0000000..57257c0 --- /dev/null +++ b/twil-api/docs/ConferenceEnumReasonConferenceEnded.md @@ -0,0 +1,10 @@ +# ConferenceEnumReasonConferenceEnded + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ConferenceEnumStatus.md b/twil-api/docs/ConferenceEnumStatus.md new file mode 100644 index 0000000..623255e --- /dev/null +++ b/twil-api/docs/ConferenceEnumStatus.md @@ -0,0 +1,10 @@ +# ConferenceEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ConferenceRecordingEnumSource.md b/twil-api/docs/ConferenceRecordingEnumSource.md new file mode 100644 index 0000000..8812dab --- /dev/null +++ b/twil-api/docs/ConferenceRecordingEnumSource.md @@ -0,0 +1,10 @@ +# ConferenceRecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ConferenceRecordingEnumStatus.md b/twil-api/docs/ConferenceRecordingEnumStatus.md new file mode 100644 index 0000000..c5ec13d --- /dev/null +++ b/twil-api/docs/ConferenceRecordingEnumStatus.md @@ -0,0 +1,10 @@ +# ConferenceRecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ConnectAppEnumPermission.md b/twil-api/docs/ConnectAppEnumPermission.md new file mode 100644 index 0000000..71afab8 --- /dev/null +++ b/twil-api/docs/ConnectAppEnumPermission.md @@ -0,0 +1,10 @@ +# ConnectAppEnumPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/DefaultApi.md b/twil-api/docs/DefaultApi.md new file mode 100644 index 0000000..0743702 --- /dev/null +++ b/twil-api/docs/DefaultApi.md @@ -0,0 +1,7628 @@ +# \DefaultApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_account**](DefaultApi.md#create_account) | **POST** /2010-04-01/Accounts.json | +[**create_address**](DefaultApi.md#create_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**create_application**](DefaultApi.md#create_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**create_call**](DefaultApi.md#create_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**create_call_feedback_summary**](DefaultApi.md#create_call_feedback_summary) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +[**create_call_recording**](DefaultApi.md#create_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**create_incoming_phone_number**](DefaultApi.md#create_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**create_incoming_phone_number_assigned_add_on**](DefaultApi.md#create_incoming_phone_number_assigned_add_on) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +[**create_incoming_phone_number_local**](DefaultApi.md#create_incoming_phone_number_local) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +[**create_incoming_phone_number_mobile**](DefaultApi.md#create_incoming_phone_number_mobile) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +[**create_incoming_phone_number_toll_free**](DefaultApi.md#create_incoming_phone_number_toll_free) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +[**create_message**](DefaultApi.md#create_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**create_message_feedback**](DefaultApi.md#create_message_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +[**create_new_key**](DefaultApi.md#create_new_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys.json | +[**create_new_signing_key**](DefaultApi.md#create_new_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +[**create_participant**](DefaultApi.md#create_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**create_payments**](DefaultApi.md#create_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +[**create_queue**](DefaultApi.md#create_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**create_sip_auth_calls_credential_list_mapping**](DefaultApi.md#create_sip_auth_calls_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +[**create_sip_auth_calls_ip_access_control_list_mapping**](DefaultApi.md#create_sip_auth_calls_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +[**create_sip_auth_registrations_credential_list_mapping**](DefaultApi.md#create_sip_auth_registrations_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +[**create_sip_credential**](DefaultApi.md#create_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**create_sip_credential_list**](DefaultApi.md#create_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**create_sip_credential_list_mapping**](DefaultApi.md#create_sip_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +[**create_sip_domain**](DefaultApi.md#create_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**create_sip_ip_access_control_list**](DefaultApi.md#create_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**create_sip_ip_access_control_list_mapping**](DefaultApi.md#create_sip_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +[**create_sip_ip_address**](DefaultApi.md#create_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**create_siprec**](DefaultApi.md#create_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json | +[**create_stream**](DefaultApi.md#create_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | +[**create_token**](DefaultApi.md#create_token) | **POST** /2010-04-01/Accounts/{AccountSid}/Tokens.json | +[**create_usage_trigger**](DefaultApi.md#create_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**create_user_defined_message**](DefaultApi.md#create_user_defined_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | +[**create_user_defined_message_subscription**](DefaultApi.md#create_user_defined_message_subscription) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +[**create_validation_request**](DefaultApi.md#create_validation_request) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +[**delete_address**](DefaultApi.md#delete_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**delete_application**](DefaultApi.md#delete_application) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**delete_call**](DefaultApi.md#delete_call) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**delete_call_feedback_summary**](DefaultApi.md#delete_call_feedback_summary) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +[**delete_call_recording**](DefaultApi.md#delete_call_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**delete_conference_recording**](DefaultApi.md#delete_conference_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**delete_connect_app**](DefaultApi.md#delete_connect_app) | **DELETE** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**delete_incoming_phone_number**](DefaultApi.md#delete_incoming_phone_number) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**delete_incoming_phone_number_assigned_add_on**](DefaultApi.md#delete_incoming_phone_number_assigned_add_on) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**delete_key**](DefaultApi.md#delete_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**delete_media**](DefaultApi.md#delete_media) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**delete_message**](DefaultApi.md#delete_message) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**delete_outgoing_caller_id**](DefaultApi.md#delete_outgoing_caller_id) | **DELETE** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**delete_participant**](DefaultApi.md#delete_participant) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**delete_queue**](DefaultApi.md#delete_queue) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**delete_recording**](DefaultApi.md#delete_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**delete_recording_add_on_result**](DefaultApi.md#delete_recording_add_on_result) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**delete_recording_add_on_result_payload**](DefaultApi.md#delete_recording_add_on_result_payload) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**delete_recording_transcription**](DefaultApi.md#delete_recording_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**delete_signing_key**](DefaultApi.md#delete_signing_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**delete_sip_auth_calls_credential_list_mapping**](DefaultApi.md#delete_sip_auth_calls_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**delete_sip_auth_calls_ip_access_control_list_mapping**](DefaultApi.md#delete_sip_auth_calls_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**delete_sip_auth_registrations_credential_list_mapping**](DefaultApi.md#delete_sip_auth_registrations_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**delete_sip_credential**](DefaultApi.md#delete_sip_credential) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**delete_sip_credential_list**](DefaultApi.md#delete_sip_credential_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**delete_sip_credential_list_mapping**](DefaultApi.md#delete_sip_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**delete_sip_domain**](DefaultApi.md#delete_sip_domain) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**delete_sip_ip_access_control_list**](DefaultApi.md#delete_sip_ip_access_control_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**delete_sip_ip_access_control_list_mapping**](DefaultApi.md#delete_sip_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**delete_sip_ip_address**](DefaultApi.md#delete_sip_ip_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**delete_transcription**](DefaultApi.md#delete_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**delete_usage_trigger**](DefaultApi.md#delete_usage_trigger) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**delete_user_defined_message_subscription**](DefaultApi.md#delete_user_defined_message_subscription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | +[**fetch_account**](DefaultApi.md#fetch_account) | **GET** /2010-04-01/Accounts/{Sid}.json | +[**fetch_address**](DefaultApi.md#fetch_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**fetch_application**](DefaultApi.md#fetch_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**fetch_authorized_connect_app**](DefaultApi.md#fetch_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +[**fetch_available_phone_number_country**](DefaultApi.md#fetch_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +[**fetch_balance**](DefaultApi.md#fetch_balance) | **GET** /2010-04-01/Accounts/{AccountSid}/Balance.json | +[**fetch_call**](DefaultApi.md#fetch_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**fetch_call_feedback**](DefaultApi.md#fetch_call_feedback) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +[**fetch_call_feedback_summary**](DefaultApi.md#fetch_call_feedback_summary) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +[**fetch_call_notification**](DefaultApi.md#fetch_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +[**fetch_call_recording**](DefaultApi.md#fetch_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**fetch_conference**](DefaultApi.md#fetch_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +[**fetch_conference_recording**](DefaultApi.md#fetch_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**fetch_connect_app**](DefaultApi.md#fetch_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**fetch_incoming_phone_number**](DefaultApi.md#fetch_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**fetch_incoming_phone_number_assigned_add_on**](DefaultApi.md#fetch_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**fetch_incoming_phone_number_assigned_add_on_extension**](DefaultApi.md#fetch_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +[**fetch_key**](DefaultApi.md#fetch_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**fetch_media**](DefaultApi.md#fetch_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**fetch_member**](DefaultApi.md#fetch_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +[**fetch_message**](DefaultApi.md#fetch_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**fetch_notification**](DefaultApi.md#fetch_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +[**fetch_outgoing_caller_id**](DefaultApi.md#fetch_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**fetch_participant**](DefaultApi.md#fetch_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**fetch_queue**](DefaultApi.md#fetch_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**fetch_recording**](DefaultApi.md#fetch_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**fetch_recording_add_on_result**](DefaultApi.md#fetch_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**fetch_recording_add_on_result_payload**](DefaultApi.md#fetch_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**fetch_recording_transcription**](DefaultApi.md#fetch_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**fetch_short_code**](DefaultApi.md#fetch_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +[**fetch_signing_key**](DefaultApi.md#fetch_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**fetch_sip_auth_calls_credential_list_mapping**](DefaultApi.md#fetch_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**fetch_sip_auth_calls_ip_access_control_list_mapping**](DefaultApi.md#fetch_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**fetch_sip_auth_registrations_credential_list_mapping**](DefaultApi.md#fetch_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**fetch_sip_credential**](DefaultApi.md#fetch_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**fetch_sip_credential_list**](DefaultApi.md#fetch_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**fetch_sip_credential_list_mapping**](DefaultApi.md#fetch_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**fetch_sip_domain**](DefaultApi.md#fetch_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**fetch_sip_ip_access_control_list**](DefaultApi.md#fetch_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**fetch_sip_ip_access_control_list_mapping**](DefaultApi.md#fetch_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**fetch_sip_ip_address**](DefaultApi.md#fetch_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**fetch_transcription**](DefaultApi.md#fetch_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**fetch_usage_trigger**](DefaultApi.md#fetch_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**list_account**](DefaultApi.md#list_account) | **GET** /2010-04-01/Accounts.json | +[**list_address**](DefaultApi.md#list_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**list_application**](DefaultApi.md#list_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**list_authorized_connect_app**](DefaultApi.md#list_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | +[**list_available_phone_number_country**](DefaultApi.md#list_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | +[**list_available_phone_number_local**](DefaultApi.md#list_available_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +[**list_available_phone_number_machine_to_machine**](DefaultApi.md#list_available_phone_number_machine_to_machine) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | +[**list_available_phone_number_mobile**](DefaultApi.md#list_available_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +[**list_available_phone_number_national**](DefaultApi.md#list_available_phone_number_national) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | +[**list_available_phone_number_shared_cost**](DefaultApi.md#list_available_phone_number_shared_cost) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | +[**list_available_phone_number_toll_free**](DefaultApi.md#list_available_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +[**list_available_phone_number_voip**](DefaultApi.md#list_available_phone_number_voip) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | +[**list_call**](DefaultApi.md#list_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**list_call_event**](DefaultApi.md#list_call_event) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | +[**list_call_notification**](DefaultApi.md#list_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +[**list_call_recording**](DefaultApi.md#list_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**list_conference**](DefaultApi.md#list_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +[**list_conference_recording**](DefaultApi.md#list_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +[**list_connect_app**](DefaultApi.md#list_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +[**list_dependent_phone_number**](DefaultApi.md#list_dependent_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | +[**list_incoming_phone_number**](DefaultApi.md#list_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**list_incoming_phone_number_assigned_add_on**](DefaultApi.md#list_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +[**list_incoming_phone_number_assigned_add_on_extension**](DefaultApi.md#list_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | +[**list_incoming_phone_number_local**](DefaultApi.md#list_incoming_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +[**list_incoming_phone_number_mobile**](DefaultApi.md#list_incoming_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +[**list_incoming_phone_number_toll_free**](DefaultApi.md#list_incoming_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +[**list_key**](DefaultApi.md#list_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys.json | +[**list_media**](DefaultApi.md#list_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | +[**list_member**](DefaultApi.md#list_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +[**list_message**](DefaultApi.md#list_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**list_notification**](DefaultApi.md#list_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications.json | +[**list_outgoing_caller_id**](DefaultApi.md#list_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +[**list_participant**](DefaultApi.md#list_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**list_queue**](DefaultApi.md#list_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**list_recording**](DefaultApi.md#list_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +[**list_recording_add_on_result**](DefaultApi.md#list_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | +[**list_recording_add_on_result_payload**](DefaultApi.md#list_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | +[**list_recording_transcription**](DefaultApi.md#list_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +[**list_short_code**](DefaultApi.md#list_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +[**list_signing_key**](DefaultApi.md#list_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +[**list_sip_auth_calls_credential_list_mapping**](DefaultApi.md#list_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +[**list_sip_auth_calls_ip_access_control_list_mapping**](DefaultApi.md#list_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +[**list_sip_auth_registrations_credential_list_mapping**](DefaultApi.md#list_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +[**list_sip_credential**](DefaultApi.md#list_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**list_sip_credential_list**](DefaultApi.md#list_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**list_sip_credential_list_mapping**](DefaultApi.md#list_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +[**list_sip_domain**](DefaultApi.md#list_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**list_sip_ip_access_control_list**](DefaultApi.md#list_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**list_sip_ip_access_control_list_mapping**](DefaultApi.md#list_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +[**list_sip_ip_address**](DefaultApi.md#list_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**list_transcription**](DefaultApi.md#list_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | +[**list_usage_record**](DefaultApi.md#list_usage_record) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | +[**list_usage_record_all_time**](DefaultApi.md#list_usage_record_all_time) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | +[**list_usage_record_daily**](DefaultApi.md#list_usage_record_daily) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | +[**list_usage_record_last_month**](DefaultApi.md#list_usage_record_last_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | +[**list_usage_record_monthly**](DefaultApi.md#list_usage_record_monthly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | +[**list_usage_record_this_month**](DefaultApi.md#list_usage_record_this_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | +[**list_usage_record_today**](DefaultApi.md#list_usage_record_today) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | +[**list_usage_record_yearly**](DefaultApi.md#list_usage_record_yearly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | +[**list_usage_record_yesterday**](DefaultApi.md#list_usage_record_yesterday) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | +[**list_usage_trigger**](DefaultApi.md#list_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**update_account**](DefaultApi.md#update_account) | **POST** /2010-04-01/Accounts/{Sid}.json | +[**update_address**](DefaultApi.md#update_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**update_application**](DefaultApi.md#update_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**update_call**](DefaultApi.md#update_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**update_call_feedback**](DefaultApi.md#update_call_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +[**update_call_recording**](DefaultApi.md#update_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**update_conference**](DefaultApi.md#update_conference) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +[**update_conference_recording**](DefaultApi.md#update_conference_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**update_connect_app**](DefaultApi.md#update_connect_app) | **POST** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**update_incoming_phone_number**](DefaultApi.md#update_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**update_key**](DefaultApi.md#update_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**update_member**](DefaultApi.md#update_member) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +[**update_message**](DefaultApi.md#update_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**update_outgoing_caller_id**](DefaultApi.md#update_outgoing_caller_id) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**update_participant**](DefaultApi.md#update_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**update_payments**](DefaultApi.md#update_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | +[**update_queue**](DefaultApi.md#update_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**update_short_code**](DefaultApi.md#update_short_code) | **POST** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +[**update_signing_key**](DefaultApi.md#update_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**update_sip_credential**](DefaultApi.md#update_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**update_sip_credential_list**](DefaultApi.md#update_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**update_sip_domain**](DefaultApi.md#update_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**update_sip_ip_access_control_list**](DefaultApi.md#update_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**update_sip_ip_address**](DefaultApi.md#update_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**update_siprec**](DefaultApi.md#update_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | +[**update_stream**](DefaultApi.md#update_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | +[**update_usage_trigger**](DefaultApi.md#update_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | + + + +## create_account + +> crate::models::ApiPeriodV2010PeriodAccount create_account(friendly_name) + + +Create a new Twilio Subaccount from the account making the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress create_address(account_sid, customer_name, street, city, region, postal_code, iso_country, friendly_name, emergency_enabled, auto_correct_address, street_secondary) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. | [required] | +**customer_name** | **String** | The name to associate with the new address. | [required] | +**street** | **String** | The number and street address of the new address. | [required] | +**city** | **String** | The city of the new address. | [required] | +**region** | **String** | The state or region of the new address. | [required] | +**postal_code** | **String** | The postal code of the new address. | [required] | +**iso_country** | **String** | The ISO country code of the new address. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new address. It can be up to 64 characters long. | | +**emergency_enabled** | Option<**bool**> | Whether to enable emergency calling on the new address. Can be: `true` or `false`. | | +**auto_correct_address** | Option<**bool**> | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. | | +**street_secondary** | Option<**String**> | The additional number and street address of the address. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication create_application(account_sid, api_version, voice_url, voice_method, voice_fallback_url, voice_fallback_method, status_callback, status_callback_method, voice_caller_id_lookup, sms_url, sms_method, sms_fallback_url, sms_fallback_method, sms_status_callback, message_status_callback, friendly_name, public_application_connect_enabled) + + +Create a new application within your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is the account's default API version. | | +**voice_url** | Option<**String**> | The URL we should call when the phone number assigned to this application receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**sms_method** | Option<**String**> | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | | +**sms_status_callback** | Option<**String**> | The URL we should call using a POST method to send status information about SMS messages sent by the application. | | +**message_status_callback** | Option<**String**> | The URL we should call using a POST method to send message status information to your application. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new application. It can be up to 64 characters long. | | +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall create_call(account_sid, to, from, method, fallback_url, fallback_method, status_callback, status_callback_event, status_callback_method, send_digits, timeout, record, recording_channels, recording_status_callback, recording_status_callback_method, sip_auth_username, sip_auth_password, machine_detection, machine_detection_timeout, recording_status_callback_event, trim, caller_id, machine_detection_speech_threshold, machine_detection_speech_end_threshold, machine_detection_silence_timeout, async_amd, async_amd_status_callback, async_amd_status_callback_method, byoc, call_reason, call_token, recording_track, time_limit, url, twiml, application_sid) + + +Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**to** | **String** | The phone number, SIP address, or client identifier to call. | [required] | +**from** | **String** | The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `From` must also be a phone number. | [required] | +**method** | Option<**String**> | The HTTP method we should use when calling the `url` parameter's value. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_url** | Option<**String**> | The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_method** | Option<**String**> | The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). | | +**status_callback_event** | Option<[**Vec**](String.md)> | The call progress events that we will send to the `status_callback` URL. Can be: `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, we send the `completed` status. If you want to receive multiple events, specify each one in a separate `status_callback_event` parameter. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**send_digits** | Option<**String**> | A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored. | | +**timeout** | Option<**i32**> | The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail. | | +**record** | Option<**bool**> | Whether to record the call. Can be `true` to record the phone call, or `false` to not. The default is `false`. The `recording_url` is sent to the `status_callback` URL. | | +**recording_channels** | Option<**String**> | The number of channels in the final recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both legs of the call in a single channel of the recording file. `dual` records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call. | | +**recording_status_callback** | Option<**String**> | The URL that we call when the recording is available to be accessed. | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**sip_auth_username** | Option<**String**> | The username used to authenticate the caller making a SIP call. | | +**sip_auth_password** | Option<**String**> | The password required to authenticate the user account specified in `sip_auth_username`. | | +**machine_detection** | Option<**String**> | Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. If `send_digits` is provided, this parameter is ignored. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). | | +**machine_detection_timeout** | Option<**i32**> | The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. | | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording status events that will trigger calls to the URL specified in `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`. Defaults to `completed`. Separate multiple values with a space. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence from the recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. | | +**caller_id** | Option<**String**> | The phone number, SIP address, or Client identifier that made this call. Phone numbers are in [E.164 format](https://wwnw.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. | | +**machine_detection_speech_threshold** | Option<**i32**> | The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. | | +**machine_detection_speech_end_threshold** | Option<**i32**> | The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | | +**machine_detection_silence_timeout** | Option<**i32**> | The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | | +**async_amd** | Option<**String**> | Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`. | | +**async_amd_status_callback** | Option<**String**> | The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. | | +**async_amd_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**byoc** | Option<**String**> | The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) | | +**call_reason** | Option<**String**> | The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) | | +**call_token** | Option<**String**> | A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | +**url** | Option<**String**> | The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). | | +**twiml** | Option<**String**> | TwiML instructions for the call Twilio will use without fetching Twiml from url parameter. If both `twiml` and `url` are provided then `twiml` parameter will be ignored. Max 4000 characters. | | +**application_sid** | Option<**String**> | The SID of the Application resource that will handle the call, if the call will be handled by an application. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_call_feedback_summary + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary create_call_feedback_summary(account_sid, start_date, end_date, include_subaccounts, status_callback, status_callback_method) + + +Create a FeedbackSummary resource for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**start_date** | **String** | Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | [required] | +**end_date** | **String** | Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | [required] | +**include_subaccounts** | Option<**bool**> | Whether to also include Feedback resources from all subaccounts. `true` includes feedback from all subaccounts and `false`, the default, includes feedback from only the specified account. | | +**status_callback** | Option<**String**> | The URL that we will request when the feedback summary is complete. | | +**status_callback_method** | Option<**String**> | The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary**](api.v2010.account.call.call_feedback_summary.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording create_call_recording(account_sid, call_sid, recording_status_callback_event, recording_status_callback, recording_status_callback_method, trim, recording_channels, recording_track) + + +Create a recording for the call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. | [required] | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording status events on which we should call the `recording_status_callback` URL. Can be: `in-progress`, `completed` and `absent` and the default is `completed`. Separate multiple event values with a space. | | +**recording_status_callback** | Option<**String**> | The URL we should call using the `recording_status_callback_method` on each recording event specified in `recording_status_callback_event`. For more information, see [RecordingStatusCallback parameters](https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback). | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence in the recording. Can be: `trim-silence` or `do-not-trim` and the default is `do-not-trim`. `trim-silence` trims the silence from the beginning and end of the recording and `do-not-trim` does not. | | +**recording_channels** | Option<**String**> | The number of channels used in the recording. Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties of the call into one channel. `dual` records each party of a 2-party call into separate channels. | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber create_incoming_phone_number(account_sid, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, emergency_status, emergency_address_sid, trunk_sid, identity_sid, address_sid, voice_receive_mode, bundle_sid, phone_number, area_code) + + +Purchase a phone-number for the account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | +**phone_number** | Option<**String**> | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | | +**area_code** | Option<**String**> | The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. **You must provide an `area_code` or a `phone_number`.** (US and Canada only). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_incoming_phone_number_assigned_add_on + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn create_incoming_phone_number_assigned_add_on(account_sid, resource_sid, installed_add_on_sid) + + +Assign an Add-on installation to the Number specified. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to assign the Add-on. | [required] | +**installed_add_on_sid** | **String** | The SID that identifies the Add-on installation. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_incoming_phone_number_local + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal create_incoming_phone_number_local(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberLocalEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberLocalEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal**](api.v2010.account.incoming_phone_number.incoming_phone_number_local.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_incoming_phone_number_mobile + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile create_incoming_phone_number_mobile(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those of the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberMobileEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberMobileEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile**](api.v2010.account.incoming_phone_number.incoming_phone_number_mobile.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_incoming_phone_number_toll_free + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree create_incoming_phone_number_toll_free(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree**](api.v2010.account.incoming_phone_number.incoming_phone_number_toll_free.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage create_message(account_sid, to, status_callback, application_sid, max_price, provide_feedback, attempt, validity_period, force_delivery, content_retention, address_retention, smart_encoded, persistent_action, shorten_urls, schedule_type, send_at, send_as_mms, content_variables, from, messaging_service_sid, body, media_url, content_sid) + + +Send a message from the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**to** | **String** | The destination phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format for SMS/MMS or [Channel user address](https://www.twilio.com/docs/sms/channels#channel-addresses) for other 3rd-party channels. | [required] | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. If specified, we POST these message status changes to the URL: `queued`, `failed`, `sent`, `delivered`, or `undelivered`. Twilio will POST its [standard request parameters](https://www.twilio.com/docs/sms/twiml#request-parameters) as well as some additional parameters including `MessageSid`, `MessageStatus`, and `ErrorCode`. If you include this parameter with the `messaging_service_sid`, we use this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/sms/services/api). URLs must contain a valid hostname and underscores are not allowed. | | +**application_sid** | Option<**String**> | The SID of the application that should receive message status. We POST a `message_sid` parameter and a `message_status` parameter with a value of `sent` or `failed` to the [application](https://www.twilio.com/docs/usage/api/applications)'s `message_status_callback`. If a `status_callback` parameter is also passed, it will be ignored and the application's `message_status_callback` parameter will be used. | | +**max_price** | Option<**f32**> | The maximum total price in US dollars that you will pay for the message to be delivered. Can be a decimal value that has up to 4 decimal places. All messages are queued for delivery and the message cost is checked before the message is sent. If the cost exceeds `max_price`, the message will fail and a status of `Failed` is sent to the status callback. If `MaxPrice` is not set, the message cost is not checked. | | +**provide_feedback** | Option<**bool**> | Whether to confirm delivery of the message. Set this value to `true` if you are sending messages that have a trackable user action and you intend to confirm delivery of the message using the [Message Feedback API](https://www.twilio.com/docs/sms/api/message-feedback-resource). This parameter is `false` by default. | | +**attempt** | Option<**i32**> | Total number of attempts made ( including this ) to send out the message regardless of the provider used | | +**validity_period** | Option<**i32**> | How long in seconds the message can remain in our outgoing message queue. After this period elapses, the message fails and we call your status callback. Can be between 1 and the default value of 14,400 seconds. After a message has been accepted by a carrier, however, we cannot guarantee that the message will not be queued after this period. We recommend that this value be at least 5 seconds. | | +**force_delivery** | Option<**bool**> | Reserved | | +**content_retention** | Option<**crate::models::MessageEnumContentRetention**> | | | +**address_retention** | Option<**crate::models::MessageEnumAddressRetention**> | | | +**smart_encoded** | Option<**bool**> | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | | +**persistent_action** | Option<[**Vec**](String.md)> | Rich actions for Channels Messages. | | +**shorten_urls** | Option<**bool**> | Determines the usage of Click Tracking. Setting it to `true` will instruct Twilio to replace all links in the Message with a shortened version based on the associated Domain Sid and track clicks on them. If this parameter is not set on an API call, we will use the value set on the Messaging Service. If this parameter is not set and the value is not configured on the Messaging Service used this will default to `false`. | | +**schedule_type** | Option<**crate::models::MessageEnumScheduleType**> | | | +**send_at** | Option<**String**> | The time that Twilio will send the message. Must be in ISO 8601 format. | | +**send_as_mms** | Option<**bool**> | If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. | | +**content_variables** | Option<**String**> | Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time. | | +**from** | Option<**String**> | A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. | | +**messaging_service_sid** | Option<**String**> | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery. | | +**body** | Option<**String**> | The text of the message you want to send. Can be up to 1,600 characters in length. | | +**media_url** | Option<[**Vec**](String.md)> | The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada. | | +**content_sid** | Option<**String**> | The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_message_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback create_message_feedback(account_sid, message_sid, outcome) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**message_sid** | **String** | The SID of the Message resource for which the feedback was provided. | [required] | +**outcome** | Option<**crate::models::MessageFeedbackEnumOutcome**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback**](api.v2010.account.message.message_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_new_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNewKey create_new_key(account_sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNewKey**](api.v2010.account.new_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_new_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNewSigningKey create_new_signing_key(account_sid, friendly_name) + + +Create a new Signing Key for the account making the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNewSigningKey**](api.v2010.account.new_signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant create_participant(account_sid, conference_sid, from, to, status_callback, status_callback_method, status_callback_event, label, timeout, record, muted, beep, start_conference_on_enter, end_conference_on_exit, wait_url, wait_method, early_media, max_participants, conference_record, conference_trim, conference_status_callback, conference_status_callback_method, conference_status_callback_event, recording_channels, recording_status_callback, recording_status_callback_method, sip_auth_username, sip_auth_password, region, conference_recording_status_callback, conference_recording_status_callback_method, recording_status_callback_event, conference_recording_status_callback_event, coaching, call_sid_to_coach, jitter_buffer_size, byoc, caller_id, call_reason, recording_track, time_limit, machine_detection, machine_detection_timeout, machine_detection_speech_threshold, machine_detection_speech_end_threshold, machine_detection_silence_timeout, amd_status_callback, amd_status_callback_method, trim) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**conference_sid** | **String** | The SID of the participant's conference. | [required] | +**from** | **String** | The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint. | [required] | +**to** | **String** | The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified. | [required] | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | | +**status_callback_event** | Option<[**Vec**](String.md)> | The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`. | | +**label** | Option<**String**> | A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | | +**timeout** | Option<**i32**> | The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so value of 10 would result in an actual timeout that was closer to 15 seconds. | | +**record** | Option<**bool**> | Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | | +**muted** | Option<**bool**> | Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | | +**beep** | Option<**String**> | Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | | +**start_conference_on_enter** | Option<**bool**> | Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. | | +**end_conference_on_exit** | Option<**bool**> | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | | +**wait_url** | Option<**String**> | The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). | | +**wait_method** | Option<**String**> | The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. | | +**early_media** | Option<**bool**> | Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`. | | +**max_participants** | Option<**i32**> | The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | | +**conference_record** | Option<**String**> | Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | | +**conference_trim** | Option<**String**> | Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | | +**conference_status_callback** | Option<**String**> | The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. | | +**conference_status_callback_method** | Option<**String**> | The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**conference_status_callback_event** | Option<[**Vec**](String.md)> | The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`. | | +**recording_channels** | Option<**String**> | The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | | +**recording_status_callback** | Option<**String**> | The URL that we should call using the `recording_status_callback_method` when the recording status changes. | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sip_auth_username** | Option<**String**> | The SIP username used for authentication. | | +**sip_auth_password** | Option<**String**> | The SIP password for authentication. | | +**region** | Option<**String**> | The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`. | | +**conference_recording_status_callback** | Option<**String**> | The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | | +**conference_recording_status_callback_method** | Option<**String**> | The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`. | | +**conference_recording_status_callback_event** | Option<[**Vec**](String.md)> | The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'` | | +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | | +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | | +**jitter_buffer_size** | Option<**String**> | Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`. | | +**byoc** | Option<**String**> | The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) | | +**caller_id** | Option<**String**> | The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint. | | +**call_reason** | Option<**String**> | The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio. | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | +**machine_detection** | Option<**String**> | Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. If `send_digits` is provided, this parameter is ignored. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). | | +**machine_detection_timeout** | Option<**i32**> | The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. | | +**machine_detection_speech_threshold** | Option<**i32**> | The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. | | +**machine_detection_speech_end_threshold** | Option<**i32**> | The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | | +**machine_detection_silence_timeout** | Option<**i32**> | The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | | +**amd_status_callback** | Option<**String**> | The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. | | +**amd_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_payments + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments create_payments(account_sid, call_sid, idempotency_key, status_callback, bank_account_type, charge_amount, currency, description, input, min_postal_code_length, parameter, payment_connector, payment_method, postal_code, security_code, timeout, token_type, valid_card_types) + + +create an instance of payments. This will start a new payments session + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**call_sid** | **String** | The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. | [required] | +**idempotency_key** | **String** | A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. | [required] | +**status_callback** | **String** | Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback) | [required] | +**bank_account_type** | Option<**crate::models::PaymentsEnumBankAccountType**> | | | +**charge_amount** | Option<**f32**> | A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize. | | +**currency** | Option<**String**> | The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted. | | +**description** | Option<**String**> | The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions. | | +**input** | Option<**String**> | A list of inputs that should be accepted. Currently only `dtmf` is supported. All digits captured during a pay session are redacted from the logs. | | +**min_postal_code_length** | Option<**i32**> | A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | | +**parameter** | Option<[**serde_json::Value**](serde_json::Value.md)> | A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | | +**payment_connector** | Option<**String**> | This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [ Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | | +**payment_method** | Option<**crate::models::PaymentsEnumPaymentMethod**> | | | +**postal_code** | Option<**bool**> | Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`. | | +**security_code** | Option<**bool**> | Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`. | | +**timeout** | Option<**i32**> | The number of seconds that should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`. | | +**token_type** | Option<**crate::models::PaymentsEnumTokenType**> | | | +**valid_card_types** | Option<**String**> | Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments**](api.v2010.account.call.payments.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue create_queue(account_sid, friendly_name, max_size) + + +Create a queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**friendly_name** | **String** | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | [required] | +**max_size** | Option<**i32**> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_auth_calls_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping create_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a new credential list mapping resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**credential_list_sid** | **String** | The SID of the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping create_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, ip_access_control_list_sid) + + +Create a new IP Access Control List mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**ip_access_control_list_sid** | **String** | The SID of the IpAccessControlList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_auth_registrations_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping create_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a new credential list mapping resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**credential_list_sid** | **String** | The SID of the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential create_sip_credential(account_sid, credential_list_sid, username, password) + + +Create a new credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list to include the created credential. | [required] | +**username** | **String** | The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long. | [required] | +**password** | **String** | The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList create_sip_credential_list(account_sid, friendly_name) + + +Create a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text that describes the CredentialList, up to 64 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping create_sip_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a CredentialListMapping resource for an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. | [required] | +**credential_list_sid** | **String** | A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain create_sip_domain(account_sid, domain_name, friendly_name, voice_url, voice_method, voice_fallback_url, voice_fallback_method, voice_status_callback_url, voice_status_callback_method, sip_registration, emergency_calling_enabled, secure, byoc_trunk_sid, emergency_caller_sid) + + +Create a new Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_name** | **String** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | | +**voice_url** | Option<**String**> | The URL we should when the domain receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**voice_status_callback_url** | Option<**String**> | The URL that we should call to pass status parameters (such as call ended) to your application. | | +**voice_status_callback_method** | Option<**String**> | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | | +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. | | +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | | +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | | +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | | +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList create_sip_ip_access_control_list(account_sid, friendly_name) + + +Create a new IpAccessControlList resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text that describes the IpAccessControlList, up to 255 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping create_sip_ip_access_control_list_mapping(account_sid, domain_sid, ip_access_control_list_sid) + + +Create a new IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**ip_access_control_list_sid** | **String** | The unique id of the IP access control list to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress create_sip_ip_address(account_sid, ip_access_control_list_sid, friendly_name, ip_address, cidr_prefix_length) + + +Create a new IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid with which to associate the created IpAddress resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text for this resource, up to 255 characters long. | [required] | +**ip_address** | **String** | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | [required] | +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_siprec + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec create_siprec(account_sid, call_sid, name, connector_name, track, status_callback, status_callback_method, parameter1_period_name, parameter1_period_value, parameter2_period_name, parameter2_period_value, parameter3_period_name, parameter3_period_value, parameter4_period_name, parameter4_period_value, parameter5_period_name, parameter5_period_value, parameter6_period_name, parameter6_period_value, parameter7_period_name, parameter7_period_value, parameter8_period_name, parameter8_period_value, parameter9_period_name, parameter9_period_value, parameter10_period_name, parameter10_period_value, parameter11_period_name, parameter11_period_value, parameter12_period_name, parameter12_period_value, parameter13_period_name, parameter13_period_value, parameter14_period_name, parameter14_period_value, parameter15_period_name, parameter15_period_value, parameter16_period_name, parameter16_period_value, parameter17_period_name, parameter17_period_value, parameter18_period_name, parameter18_period_value, parameter19_period_name, parameter19_period_value, parameter20_period_name, parameter20_period_value, parameter21_period_name, parameter21_period_value, parameter22_period_name, parameter22_period_value, parameter23_period_name, parameter23_period_value, parameter24_period_name, parameter24_period_value, parameter25_period_name, parameter25_period_value, parameter26_period_name, parameter26_period_value, parameter27_period_name, parameter27_period_value, parameter28_period_name, parameter28_period_value, parameter29_period_name, parameter29_period_value, parameter30_period_name, parameter30_period_value, parameter31_period_name, parameter31_period_value, parameter32_period_name, parameter32_period_value, parameter33_period_name, parameter33_period_value, parameter34_period_name, parameter34_period_value, parameter35_period_name, parameter35_period_value, parameter36_period_name, parameter36_period_value, parameter37_period_name, parameter37_period_value, parameter38_period_name, parameter38_period_value, parameter39_period_name, parameter39_period_value, parameter40_period_name, parameter40_period_value, parameter41_period_name, parameter41_period_value, parameter42_period_name, parameter42_period_value, parameter43_period_name, parameter43_period_value, parameter44_period_name, parameter44_period_value, parameter45_period_name, parameter45_period_value, parameter46_period_name, parameter46_period_value, parameter47_period_name, parameter47_period_value, parameter48_period_name, parameter48_period_value, parameter49_period_name, parameter49_period_value, parameter50_period_name, parameter50_period_value, parameter51_period_name, parameter51_period_value, parameter52_period_name, parameter52_period_value, parameter53_period_name, parameter53_period_value, parameter54_period_name, parameter54_period_value, parameter55_period_name, parameter55_period_value, parameter56_period_name, parameter56_period_value, parameter57_period_name, parameter57_period_value, parameter58_period_name, parameter58_period_value, parameter59_period_name, parameter59_period_value, parameter60_period_name, parameter60_period_value, parameter61_period_name, parameter61_period_value, parameter62_period_name, parameter62_period_value, parameter63_period_name, parameter63_period_value, parameter64_period_name, parameter64_period_value, parameter65_period_name, parameter65_period_value, parameter66_period_name, parameter66_period_value, parameter67_period_name, parameter67_period_value, parameter68_period_name, parameter68_period_value, parameter69_period_name, parameter69_period_value, parameter70_period_name, parameter70_period_value, parameter71_period_name, parameter71_period_value, parameter72_period_name, parameter72_period_value, parameter73_period_name, parameter73_period_value, parameter74_period_name, parameter74_period_value, parameter75_period_name, parameter75_period_value, parameter76_period_name, parameter76_period_value, parameter77_period_name, parameter77_period_value, parameter78_period_name, parameter78_period_value, parameter79_period_name, parameter79_period_value, parameter80_period_name, parameter80_period_value, parameter81_period_name, parameter81_period_value, parameter82_period_name, parameter82_period_value, parameter83_period_name, parameter83_period_value, parameter84_period_name, parameter84_period_value, parameter85_period_name, parameter85_period_value, parameter86_period_name, parameter86_period_value, parameter87_period_name, parameter87_period_value, parameter88_period_name, parameter88_period_value, parameter89_period_name, parameter89_period_value, parameter90_period_name, parameter90_period_value, parameter91_period_name, parameter91_period_value, parameter92_period_name, parameter92_period_value, parameter93_period_name, parameter93_period_value, parameter94_period_name, parameter94_period_value, parameter95_period_name, parameter95_period_value, parameter96_period_name, parameter96_period_value, parameter97_period_name, parameter97_period_value, parameter98_period_name, parameter98_period_value, parameter99_period_name, parameter99_period_value) + + +Create a Siprec + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [required] | +**name** | Option<**String**> | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. | | +**connector_name** | Option<**String**> | Unique name used when configuring the connector via Marketplace Add-on. | | +**track** | Option<**crate::models::SiprecEnumTrack**> | | | +**status_callback** | Option<**String**> | Absolute URL of the status callback. | | +**status_callback_method** | Option<**String**> | The http method for the status_callback (one of GET, POST). | | +**parameter1_period_name** | Option<**String**> | Parameter name | | +**parameter1_period_value** | Option<**String**> | Parameter value | | +**parameter2_period_name** | Option<**String**> | Parameter name | | +**parameter2_period_value** | Option<**String**> | Parameter value | | +**parameter3_period_name** | Option<**String**> | Parameter name | | +**parameter3_period_value** | Option<**String**> | Parameter value | | +**parameter4_period_name** | Option<**String**> | Parameter name | | +**parameter4_period_value** | Option<**String**> | Parameter value | | +**parameter5_period_name** | Option<**String**> | Parameter name | | +**parameter5_period_value** | Option<**String**> | Parameter value | | +**parameter6_period_name** | Option<**String**> | Parameter name | | +**parameter6_period_value** | Option<**String**> | Parameter value | | +**parameter7_period_name** | Option<**String**> | Parameter name | | +**parameter7_period_value** | Option<**String**> | Parameter value | | +**parameter8_period_name** | Option<**String**> | Parameter name | | +**parameter8_period_value** | Option<**String**> | Parameter value | | +**parameter9_period_name** | Option<**String**> | Parameter name | | +**parameter9_period_value** | Option<**String**> | Parameter value | | +**parameter10_period_name** | Option<**String**> | Parameter name | | +**parameter10_period_value** | Option<**String**> | Parameter value | | +**parameter11_period_name** | Option<**String**> | Parameter name | | +**parameter11_period_value** | Option<**String**> | Parameter value | | +**parameter12_period_name** | Option<**String**> | Parameter name | | +**parameter12_period_value** | Option<**String**> | Parameter value | | +**parameter13_period_name** | Option<**String**> | Parameter name | | +**parameter13_period_value** | Option<**String**> | Parameter value | | +**parameter14_period_name** | Option<**String**> | Parameter name | | +**parameter14_period_value** | Option<**String**> | Parameter value | | +**parameter15_period_name** | Option<**String**> | Parameter name | | +**parameter15_period_value** | Option<**String**> | Parameter value | | +**parameter16_period_name** | Option<**String**> | Parameter name | | +**parameter16_period_value** | Option<**String**> | Parameter value | | +**parameter17_period_name** | Option<**String**> | Parameter name | | +**parameter17_period_value** | Option<**String**> | Parameter value | | +**parameter18_period_name** | Option<**String**> | Parameter name | | +**parameter18_period_value** | Option<**String**> | Parameter value | | +**parameter19_period_name** | Option<**String**> | Parameter name | | +**parameter19_period_value** | Option<**String**> | Parameter value | | +**parameter20_period_name** | Option<**String**> | Parameter name | | +**parameter20_period_value** | Option<**String**> | Parameter value | | +**parameter21_period_name** | Option<**String**> | Parameter name | | +**parameter21_period_value** | Option<**String**> | Parameter value | | +**parameter22_period_name** | Option<**String**> | Parameter name | | +**parameter22_period_value** | Option<**String**> | Parameter value | | +**parameter23_period_name** | Option<**String**> | Parameter name | | +**parameter23_period_value** | Option<**String**> | Parameter value | | +**parameter24_period_name** | Option<**String**> | Parameter name | | +**parameter24_period_value** | Option<**String**> | Parameter value | | +**parameter25_period_name** | Option<**String**> | Parameter name | | +**parameter25_period_value** | Option<**String**> | Parameter value | | +**parameter26_period_name** | Option<**String**> | Parameter name | | +**parameter26_period_value** | Option<**String**> | Parameter value | | +**parameter27_period_name** | Option<**String**> | Parameter name | | +**parameter27_period_value** | Option<**String**> | Parameter value | | +**parameter28_period_name** | Option<**String**> | Parameter name | | +**parameter28_period_value** | Option<**String**> | Parameter value | | +**parameter29_period_name** | Option<**String**> | Parameter name | | +**parameter29_period_value** | Option<**String**> | Parameter value | | +**parameter30_period_name** | Option<**String**> | Parameter name | | +**parameter30_period_value** | Option<**String**> | Parameter value | | +**parameter31_period_name** | Option<**String**> | Parameter name | | +**parameter31_period_value** | Option<**String**> | Parameter value | | +**parameter32_period_name** | Option<**String**> | Parameter name | | +**parameter32_period_value** | Option<**String**> | Parameter value | | +**parameter33_period_name** | Option<**String**> | Parameter name | | +**parameter33_period_value** | Option<**String**> | Parameter value | | +**parameter34_period_name** | Option<**String**> | Parameter name | | +**parameter34_period_value** | Option<**String**> | Parameter value | | +**parameter35_period_name** | Option<**String**> | Parameter name | | +**parameter35_period_value** | Option<**String**> | Parameter value | | +**parameter36_period_name** | Option<**String**> | Parameter name | | +**parameter36_period_value** | Option<**String**> | Parameter value | | +**parameter37_period_name** | Option<**String**> | Parameter name | | +**parameter37_period_value** | Option<**String**> | Parameter value | | +**parameter38_period_name** | Option<**String**> | Parameter name | | +**parameter38_period_value** | Option<**String**> | Parameter value | | +**parameter39_period_name** | Option<**String**> | Parameter name | | +**parameter39_period_value** | Option<**String**> | Parameter value | | +**parameter40_period_name** | Option<**String**> | Parameter name | | +**parameter40_period_value** | Option<**String**> | Parameter value | | +**parameter41_period_name** | Option<**String**> | Parameter name | | +**parameter41_period_value** | Option<**String**> | Parameter value | | +**parameter42_period_name** | Option<**String**> | Parameter name | | +**parameter42_period_value** | Option<**String**> | Parameter value | | +**parameter43_period_name** | Option<**String**> | Parameter name | | +**parameter43_period_value** | Option<**String**> | Parameter value | | +**parameter44_period_name** | Option<**String**> | Parameter name | | +**parameter44_period_value** | Option<**String**> | Parameter value | | +**parameter45_period_name** | Option<**String**> | Parameter name | | +**parameter45_period_value** | Option<**String**> | Parameter value | | +**parameter46_period_name** | Option<**String**> | Parameter name | | +**parameter46_period_value** | Option<**String**> | Parameter value | | +**parameter47_period_name** | Option<**String**> | Parameter name | | +**parameter47_period_value** | Option<**String**> | Parameter value | | +**parameter48_period_name** | Option<**String**> | Parameter name | | +**parameter48_period_value** | Option<**String**> | Parameter value | | +**parameter49_period_name** | Option<**String**> | Parameter name | | +**parameter49_period_value** | Option<**String**> | Parameter value | | +**parameter50_period_name** | Option<**String**> | Parameter name | | +**parameter50_period_value** | Option<**String**> | Parameter value | | +**parameter51_period_name** | Option<**String**> | Parameter name | | +**parameter51_period_value** | Option<**String**> | Parameter value | | +**parameter52_period_name** | Option<**String**> | Parameter name | | +**parameter52_period_value** | Option<**String**> | Parameter value | | +**parameter53_period_name** | Option<**String**> | Parameter name | | +**parameter53_period_value** | Option<**String**> | Parameter value | | +**parameter54_period_name** | Option<**String**> | Parameter name | | +**parameter54_period_value** | Option<**String**> | Parameter value | | +**parameter55_period_name** | Option<**String**> | Parameter name | | +**parameter55_period_value** | Option<**String**> | Parameter value | | +**parameter56_period_name** | Option<**String**> | Parameter name | | +**parameter56_period_value** | Option<**String**> | Parameter value | | +**parameter57_period_name** | Option<**String**> | Parameter name | | +**parameter57_period_value** | Option<**String**> | Parameter value | | +**parameter58_period_name** | Option<**String**> | Parameter name | | +**parameter58_period_value** | Option<**String**> | Parameter value | | +**parameter59_period_name** | Option<**String**> | Parameter name | | +**parameter59_period_value** | Option<**String**> | Parameter value | | +**parameter60_period_name** | Option<**String**> | Parameter name | | +**parameter60_period_value** | Option<**String**> | Parameter value | | +**parameter61_period_name** | Option<**String**> | Parameter name | | +**parameter61_period_value** | Option<**String**> | Parameter value | | +**parameter62_period_name** | Option<**String**> | Parameter name | | +**parameter62_period_value** | Option<**String**> | Parameter value | | +**parameter63_period_name** | Option<**String**> | Parameter name | | +**parameter63_period_value** | Option<**String**> | Parameter value | | +**parameter64_period_name** | Option<**String**> | Parameter name | | +**parameter64_period_value** | Option<**String**> | Parameter value | | +**parameter65_period_name** | Option<**String**> | Parameter name | | +**parameter65_period_value** | Option<**String**> | Parameter value | | +**parameter66_period_name** | Option<**String**> | Parameter name | | +**parameter66_period_value** | Option<**String**> | Parameter value | | +**parameter67_period_name** | Option<**String**> | Parameter name | | +**parameter67_period_value** | Option<**String**> | Parameter value | | +**parameter68_period_name** | Option<**String**> | Parameter name | | +**parameter68_period_value** | Option<**String**> | Parameter value | | +**parameter69_period_name** | Option<**String**> | Parameter name | | +**parameter69_period_value** | Option<**String**> | Parameter value | | +**parameter70_period_name** | Option<**String**> | Parameter name | | +**parameter70_period_value** | Option<**String**> | Parameter value | | +**parameter71_period_name** | Option<**String**> | Parameter name | | +**parameter71_period_value** | Option<**String**> | Parameter value | | +**parameter72_period_name** | Option<**String**> | Parameter name | | +**parameter72_period_value** | Option<**String**> | Parameter value | | +**parameter73_period_name** | Option<**String**> | Parameter name | | +**parameter73_period_value** | Option<**String**> | Parameter value | | +**parameter74_period_name** | Option<**String**> | Parameter name | | +**parameter74_period_value** | Option<**String**> | Parameter value | | +**parameter75_period_name** | Option<**String**> | Parameter name | | +**parameter75_period_value** | Option<**String**> | Parameter value | | +**parameter76_period_name** | Option<**String**> | Parameter name | | +**parameter76_period_value** | Option<**String**> | Parameter value | | +**parameter77_period_name** | Option<**String**> | Parameter name | | +**parameter77_period_value** | Option<**String**> | Parameter value | | +**parameter78_period_name** | Option<**String**> | Parameter name | | +**parameter78_period_value** | Option<**String**> | Parameter value | | +**parameter79_period_name** | Option<**String**> | Parameter name | | +**parameter79_period_value** | Option<**String**> | Parameter value | | +**parameter80_period_name** | Option<**String**> | Parameter name | | +**parameter80_period_value** | Option<**String**> | Parameter value | | +**parameter81_period_name** | Option<**String**> | Parameter name | | +**parameter81_period_value** | Option<**String**> | Parameter value | | +**parameter82_period_name** | Option<**String**> | Parameter name | | +**parameter82_period_value** | Option<**String**> | Parameter value | | +**parameter83_period_name** | Option<**String**> | Parameter name | | +**parameter83_period_value** | Option<**String**> | Parameter value | | +**parameter84_period_name** | Option<**String**> | Parameter name | | +**parameter84_period_value** | Option<**String**> | Parameter value | | +**parameter85_period_name** | Option<**String**> | Parameter name | | +**parameter85_period_value** | Option<**String**> | Parameter value | | +**parameter86_period_name** | Option<**String**> | Parameter name | | +**parameter86_period_value** | Option<**String**> | Parameter value | | +**parameter87_period_name** | Option<**String**> | Parameter name | | +**parameter87_period_value** | Option<**String**> | Parameter value | | +**parameter88_period_name** | Option<**String**> | Parameter name | | +**parameter88_period_value** | Option<**String**> | Parameter value | | +**parameter89_period_name** | Option<**String**> | Parameter name | | +**parameter89_period_value** | Option<**String**> | Parameter value | | +**parameter90_period_name** | Option<**String**> | Parameter name | | +**parameter90_period_value** | Option<**String**> | Parameter value | | +**parameter91_period_name** | Option<**String**> | Parameter name | | +**parameter91_period_value** | Option<**String**> | Parameter value | | +**parameter92_period_name** | Option<**String**> | Parameter name | | +**parameter92_period_value** | Option<**String**> | Parameter value | | +**parameter93_period_name** | Option<**String**> | Parameter name | | +**parameter93_period_value** | Option<**String**> | Parameter value | | +**parameter94_period_name** | Option<**String**> | Parameter name | | +**parameter94_period_value** | Option<**String**> | Parameter value | | +**parameter95_period_name** | Option<**String**> | Parameter name | | +**parameter95_period_value** | Option<**String**> | Parameter value | | +**parameter96_period_name** | Option<**String**> | Parameter name | | +**parameter96_period_value** | Option<**String**> | Parameter value | | +**parameter97_period_name** | Option<**String**> | Parameter name | | +**parameter97_period_value** | Option<**String**> | Parameter value | | +**parameter98_period_name** | Option<**String**> | Parameter name | | +**parameter98_period_value** | Option<**String**> | Parameter value | | +**parameter99_period_name** | Option<**String**> | Parameter name | | +**parameter99_period_value** | Option<**String**> | Parameter value | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec**](api.v2010.account.call.siprec.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_stream + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream create_stream(account_sid, call_sid, url, name, track, status_callback, status_callback_method, parameter1_period_name, parameter1_period_value, parameter2_period_name, parameter2_period_value, parameter3_period_name, parameter3_period_value, parameter4_period_name, parameter4_period_value, parameter5_period_name, parameter5_period_value, parameter6_period_name, parameter6_period_value, parameter7_period_name, parameter7_period_value, parameter8_period_name, parameter8_period_value, parameter9_period_name, parameter9_period_value, parameter10_period_name, parameter10_period_value, parameter11_period_name, parameter11_period_value, parameter12_period_name, parameter12_period_value, parameter13_period_name, parameter13_period_value, parameter14_period_name, parameter14_period_value, parameter15_period_name, parameter15_period_value, parameter16_period_name, parameter16_period_value, parameter17_period_name, parameter17_period_value, parameter18_period_name, parameter18_period_value, parameter19_period_name, parameter19_period_value, parameter20_period_name, parameter20_period_value, parameter21_period_name, parameter21_period_value, parameter22_period_name, parameter22_period_value, parameter23_period_name, parameter23_period_value, parameter24_period_name, parameter24_period_value, parameter25_period_name, parameter25_period_value, parameter26_period_name, parameter26_period_value, parameter27_period_name, parameter27_period_value, parameter28_period_name, parameter28_period_value, parameter29_period_name, parameter29_period_value, parameter30_period_name, parameter30_period_value, parameter31_period_name, parameter31_period_value, parameter32_period_name, parameter32_period_value, parameter33_period_name, parameter33_period_value, parameter34_period_name, parameter34_period_value, parameter35_period_name, parameter35_period_value, parameter36_period_name, parameter36_period_value, parameter37_period_name, parameter37_period_value, parameter38_period_name, parameter38_period_value, parameter39_period_name, parameter39_period_value, parameter40_period_name, parameter40_period_value, parameter41_period_name, parameter41_period_value, parameter42_period_name, parameter42_period_value, parameter43_period_name, parameter43_period_value, parameter44_period_name, parameter44_period_value, parameter45_period_name, parameter45_period_value, parameter46_period_name, parameter46_period_value, parameter47_period_name, parameter47_period_value, parameter48_period_name, parameter48_period_value, parameter49_period_name, parameter49_period_value, parameter50_period_name, parameter50_period_value, parameter51_period_name, parameter51_period_value, parameter52_period_name, parameter52_period_value, parameter53_period_name, parameter53_period_value, parameter54_period_name, parameter54_period_value, parameter55_period_name, parameter55_period_value, parameter56_period_name, parameter56_period_value, parameter57_period_name, parameter57_period_value, parameter58_period_name, parameter58_period_value, parameter59_period_name, parameter59_period_value, parameter60_period_name, parameter60_period_value, parameter61_period_name, parameter61_period_value, parameter62_period_name, parameter62_period_value, parameter63_period_name, parameter63_period_value, parameter64_period_name, parameter64_period_value, parameter65_period_name, parameter65_period_value, parameter66_period_name, parameter66_period_value, parameter67_period_name, parameter67_period_value, parameter68_period_name, parameter68_period_value, parameter69_period_name, parameter69_period_value, parameter70_period_name, parameter70_period_value, parameter71_period_name, parameter71_period_value, parameter72_period_name, parameter72_period_value, parameter73_period_name, parameter73_period_value, parameter74_period_name, parameter74_period_value, parameter75_period_name, parameter75_period_value, parameter76_period_name, parameter76_period_value, parameter77_period_name, parameter77_period_value, parameter78_period_name, parameter78_period_value, parameter79_period_name, parameter79_period_value, parameter80_period_name, parameter80_period_value, parameter81_period_name, parameter81_period_value, parameter82_period_name, parameter82_period_value, parameter83_period_name, parameter83_period_value, parameter84_period_name, parameter84_period_value, parameter85_period_name, parameter85_period_value, parameter86_period_name, parameter86_period_value, parameter87_period_name, parameter87_period_value, parameter88_period_name, parameter88_period_value, parameter89_period_name, parameter89_period_value, parameter90_period_name, parameter90_period_value, parameter91_period_name, parameter91_period_value, parameter92_period_name, parameter92_period_value, parameter93_period_name, parameter93_period_value, parameter94_period_name, parameter94_period_value, parameter95_period_name, parameter95_period_value, parameter96_period_name, parameter96_period_value, parameter97_period_name, parameter97_period_value, parameter98_period_name, parameter98_period_value, parameter99_period_name, parameter99_period_value) + + +Create a Stream + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [required] | +**url** | **String** | Relative or absolute url where WebSocket connection will be established. | [required] | +**name** | Option<**String**> | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. | | +**track** | Option<**crate::models::StreamEnumTrack**> | | | +**status_callback** | Option<**String**> | Absolute URL of the status callback. | | +**status_callback_method** | Option<**String**> | The http method for the status_callback (one of GET, POST). | | +**parameter1_period_name** | Option<**String**> | Parameter name | | +**parameter1_period_value** | Option<**String**> | Parameter value | | +**parameter2_period_name** | Option<**String**> | Parameter name | | +**parameter2_period_value** | Option<**String**> | Parameter value | | +**parameter3_period_name** | Option<**String**> | Parameter name | | +**parameter3_period_value** | Option<**String**> | Parameter value | | +**parameter4_period_name** | Option<**String**> | Parameter name | | +**parameter4_period_value** | Option<**String**> | Parameter value | | +**parameter5_period_name** | Option<**String**> | Parameter name | | +**parameter5_period_value** | Option<**String**> | Parameter value | | +**parameter6_period_name** | Option<**String**> | Parameter name | | +**parameter6_period_value** | Option<**String**> | Parameter value | | +**parameter7_period_name** | Option<**String**> | Parameter name | | +**parameter7_period_value** | Option<**String**> | Parameter value | | +**parameter8_period_name** | Option<**String**> | Parameter name | | +**parameter8_period_value** | Option<**String**> | Parameter value | | +**parameter9_period_name** | Option<**String**> | Parameter name | | +**parameter9_period_value** | Option<**String**> | Parameter value | | +**parameter10_period_name** | Option<**String**> | Parameter name | | +**parameter10_period_value** | Option<**String**> | Parameter value | | +**parameter11_period_name** | Option<**String**> | Parameter name | | +**parameter11_period_value** | Option<**String**> | Parameter value | | +**parameter12_period_name** | Option<**String**> | Parameter name | | +**parameter12_period_value** | Option<**String**> | Parameter value | | +**parameter13_period_name** | Option<**String**> | Parameter name | | +**parameter13_period_value** | Option<**String**> | Parameter value | | +**parameter14_period_name** | Option<**String**> | Parameter name | | +**parameter14_period_value** | Option<**String**> | Parameter value | | +**parameter15_period_name** | Option<**String**> | Parameter name | | +**parameter15_period_value** | Option<**String**> | Parameter value | | +**parameter16_period_name** | Option<**String**> | Parameter name | | +**parameter16_period_value** | Option<**String**> | Parameter value | | +**parameter17_period_name** | Option<**String**> | Parameter name | | +**parameter17_period_value** | Option<**String**> | Parameter value | | +**parameter18_period_name** | Option<**String**> | Parameter name | | +**parameter18_period_value** | Option<**String**> | Parameter value | | +**parameter19_period_name** | Option<**String**> | Parameter name | | +**parameter19_period_value** | Option<**String**> | Parameter value | | +**parameter20_period_name** | Option<**String**> | Parameter name | | +**parameter20_period_value** | Option<**String**> | Parameter value | | +**parameter21_period_name** | Option<**String**> | Parameter name | | +**parameter21_period_value** | Option<**String**> | Parameter value | | +**parameter22_period_name** | Option<**String**> | Parameter name | | +**parameter22_period_value** | Option<**String**> | Parameter value | | +**parameter23_period_name** | Option<**String**> | Parameter name | | +**parameter23_period_value** | Option<**String**> | Parameter value | | +**parameter24_period_name** | Option<**String**> | Parameter name | | +**parameter24_period_value** | Option<**String**> | Parameter value | | +**parameter25_period_name** | Option<**String**> | Parameter name | | +**parameter25_period_value** | Option<**String**> | Parameter value | | +**parameter26_period_name** | Option<**String**> | Parameter name | | +**parameter26_period_value** | Option<**String**> | Parameter value | | +**parameter27_period_name** | Option<**String**> | Parameter name | | +**parameter27_period_value** | Option<**String**> | Parameter value | | +**parameter28_period_name** | Option<**String**> | Parameter name | | +**parameter28_period_value** | Option<**String**> | Parameter value | | +**parameter29_period_name** | Option<**String**> | Parameter name | | +**parameter29_period_value** | Option<**String**> | Parameter value | | +**parameter30_period_name** | Option<**String**> | Parameter name | | +**parameter30_period_value** | Option<**String**> | Parameter value | | +**parameter31_period_name** | Option<**String**> | Parameter name | | +**parameter31_period_value** | Option<**String**> | Parameter value | | +**parameter32_period_name** | Option<**String**> | Parameter name | | +**parameter32_period_value** | Option<**String**> | Parameter value | | +**parameter33_period_name** | Option<**String**> | Parameter name | | +**parameter33_period_value** | Option<**String**> | Parameter value | | +**parameter34_period_name** | Option<**String**> | Parameter name | | +**parameter34_period_value** | Option<**String**> | Parameter value | | +**parameter35_period_name** | Option<**String**> | Parameter name | | +**parameter35_period_value** | Option<**String**> | Parameter value | | +**parameter36_period_name** | Option<**String**> | Parameter name | | +**parameter36_period_value** | Option<**String**> | Parameter value | | +**parameter37_period_name** | Option<**String**> | Parameter name | | +**parameter37_period_value** | Option<**String**> | Parameter value | | +**parameter38_period_name** | Option<**String**> | Parameter name | | +**parameter38_period_value** | Option<**String**> | Parameter value | | +**parameter39_period_name** | Option<**String**> | Parameter name | | +**parameter39_period_value** | Option<**String**> | Parameter value | | +**parameter40_period_name** | Option<**String**> | Parameter name | | +**parameter40_period_value** | Option<**String**> | Parameter value | | +**parameter41_period_name** | Option<**String**> | Parameter name | | +**parameter41_period_value** | Option<**String**> | Parameter value | | +**parameter42_period_name** | Option<**String**> | Parameter name | | +**parameter42_period_value** | Option<**String**> | Parameter value | | +**parameter43_period_name** | Option<**String**> | Parameter name | | +**parameter43_period_value** | Option<**String**> | Parameter value | | +**parameter44_period_name** | Option<**String**> | Parameter name | | +**parameter44_period_value** | Option<**String**> | Parameter value | | +**parameter45_period_name** | Option<**String**> | Parameter name | | +**parameter45_period_value** | Option<**String**> | Parameter value | | +**parameter46_period_name** | Option<**String**> | Parameter name | | +**parameter46_period_value** | Option<**String**> | Parameter value | | +**parameter47_period_name** | Option<**String**> | Parameter name | | +**parameter47_period_value** | Option<**String**> | Parameter value | | +**parameter48_period_name** | Option<**String**> | Parameter name | | +**parameter48_period_value** | Option<**String**> | Parameter value | | +**parameter49_period_name** | Option<**String**> | Parameter name | | +**parameter49_period_value** | Option<**String**> | Parameter value | | +**parameter50_period_name** | Option<**String**> | Parameter name | | +**parameter50_period_value** | Option<**String**> | Parameter value | | +**parameter51_period_name** | Option<**String**> | Parameter name | | +**parameter51_period_value** | Option<**String**> | Parameter value | | +**parameter52_period_name** | Option<**String**> | Parameter name | | +**parameter52_period_value** | Option<**String**> | Parameter value | | +**parameter53_period_name** | Option<**String**> | Parameter name | | +**parameter53_period_value** | Option<**String**> | Parameter value | | +**parameter54_period_name** | Option<**String**> | Parameter name | | +**parameter54_period_value** | Option<**String**> | Parameter value | | +**parameter55_period_name** | Option<**String**> | Parameter name | | +**parameter55_period_value** | Option<**String**> | Parameter value | | +**parameter56_period_name** | Option<**String**> | Parameter name | | +**parameter56_period_value** | Option<**String**> | Parameter value | | +**parameter57_period_name** | Option<**String**> | Parameter name | | +**parameter57_period_value** | Option<**String**> | Parameter value | | +**parameter58_period_name** | Option<**String**> | Parameter name | | +**parameter58_period_value** | Option<**String**> | Parameter value | | +**parameter59_period_name** | Option<**String**> | Parameter name | | +**parameter59_period_value** | Option<**String**> | Parameter value | | +**parameter60_period_name** | Option<**String**> | Parameter name | | +**parameter60_period_value** | Option<**String**> | Parameter value | | +**parameter61_period_name** | Option<**String**> | Parameter name | | +**parameter61_period_value** | Option<**String**> | Parameter value | | +**parameter62_period_name** | Option<**String**> | Parameter name | | +**parameter62_period_value** | Option<**String**> | Parameter value | | +**parameter63_period_name** | Option<**String**> | Parameter name | | +**parameter63_period_value** | Option<**String**> | Parameter value | | +**parameter64_period_name** | Option<**String**> | Parameter name | | +**parameter64_period_value** | Option<**String**> | Parameter value | | +**parameter65_period_name** | Option<**String**> | Parameter name | | +**parameter65_period_value** | Option<**String**> | Parameter value | | +**parameter66_period_name** | Option<**String**> | Parameter name | | +**parameter66_period_value** | Option<**String**> | Parameter value | | +**parameter67_period_name** | Option<**String**> | Parameter name | | +**parameter67_period_value** | Option<**String**> | Parameter value | | +**parameter68_period_name** | Option<**String**> | Parameter name | | +**parameter68_period_value** | Option<**String**> | Parameter value | | +**parameter69_period_name** | Option<**String**> | Parameter name | | +**parameter69_period_value** | Option<**String**> | Parameter value | | +**parameter70_period_name** | Option<**String**> | Parameter name | | +**parameter70_period_value** | Option<**String**> | Parameter value | | +**parameter71_period_name** | Option<**String**> | Parameter name | | +**parameter71_period_value** | Option<**String**> | Parameter value | | +**parameter72_period_name** | Option<**String**> | Parameter name | | +**parameter72_period_value** | Option<**String**> | Parameter value | | +**parameter73_period_name** | Option<**String**> | Parameter name | | +**parameter73_period_value** | Option<**String**> | Parameter value | | +**parameter74_period_name** | Option<**String**> | Parameter name | | +**parameter74_period_value** | Option<**String**> | Parameter value | | +**parameter75_period_name** | Option<**String**> | Parameter name | | +**parameter75_period_value** | Option<**String**> | Parameter value | | +**parameter76_period_name** | Option<**String**> | Parameter name | | +**parameter76_period_value** | Option<**String**> | Parameter value | | +**parameter77_period_name** | Option<**String**> | Parameter name | | +**parameter77_period_value** | Option<**String**> | Parameter value | | +**parameter78_period_name** | Option<**String**> | Parameter name | | +**parameter78_period_value** | Option<**String**> | Parameter value | | +**parameter79_period_name** | Option<**String**> | Parameter name | | +**parameter79_period_value** | Option<**String**> | Parameter value | | +**parameter80_period_name** | Option<**String**> | Parameter name | | +**parameter80_period_value** | Option<**String**> | Parameter value | | +**parameter81_period_name** | Option<**String**> | Parameter name | | +**parameter81_period_value** | Option<**String**> | Parameter value | | +**parameter82_period_name** | Option<**String**> | Parameter name | | +**parameter82_period_value** | Option<**String**> | Parameter value | | +**parameter83_period_name** | Option<**String**> | Parameter name | | +**parameter83_period_value** | Option<**String**> | Parameter value | | +**parameter84_period_name** | Option<**String**> | Parameter name | | +**parameter84_period_value** | Option<**String**> | Parameter value | | +**parameter85_period_name** | Option<**String**> | Parameter name | | +**parameter85_period_value** | Option<**String**> | Parameter value | | +**parameter86_period_name** | Option<**String**> | Parameter name | | +**parameter86_period_value** | Option<**String**> | Parameter value | | +**parameter87_period_name** | Option<**String**> | Parameter name | | +**parameter87_period_value** | Option<**String**> | Parameter value | | +**parameter88_period_name** | Option<**String**> | Parameter name | | +**parameter88_period_value** | Option<**String**> | Parameter value | | +**parameter89_period_name** | Option<**String**> | Parameter name | | +**parameter89_period_value** | Option<**String**> | Parameter value | | +**parameter90_period_name** | Option<**String**> | Parameter name | | +**parameter90_period_value** | Option<**String**> | Parameter value | | +**parameter91_period_name** | Option<**String**> | Parameter name | | +**parameter91_period_value** | Option<**String**> | Parameter value | | +**parameter92_period_name** | Option<**String**> | Parameter name | | +**parameter92_period_value** | Option<**String**> | Parameter value | | +**parameter93_period_name** | Option<**String**> | Parameter name | | +**parameter93_period_value** | Option<**String**> | Parameter value | | +**parameter94_period_name** | Option<**String**> | Parameter name | | +**parameter94_period_value** | Option<**String**> | Parameter value | | +**parameter95_period_name** | Option<**String**> | Parameter name | | +**parameter95_period_value** | Option<**String**> | Parameter value | | +**parameter96_period_name** | Option<**String**> | Parameter name | | +**parameter96_period_value** | Option<**String**> | Parameter value | | +**parameter97_period_name** | Option<**String**> | Parameter name | | +**parameter97_period_value** | Option<**String**> | Parameter value | | +**parameter98_period_name** | Option<**String**> | Parameter name | | +**parameter98_period_value** | Option<**String**> | Parameter value | | +**parameter99_period_name** | Option<**String**> | Parameter name | | +**parameter99_period_value** | Option<**String**> | Parameter value | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream**](api.v2010.account.call.stream.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_token + +> crate::models::ApiPeriodV2010PeriodAccountPeriodToken create_token(account_sid, ttl) + + +Create a new token for ICE servers + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**ttl** | Option<**i32**> | The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodToken**](api.v2010.account.token.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger create_usage_trigger(account_sid, callback_url, trigger_value, usage_category, callback_method, friendly_name, recurring, trigger_by) + + +Create a new UsageTrigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**callback_url** | **String** | The URL we should call using `callback_method` when the trigger fires. | [required] | +**trigger_value** | **String** | The usage value at which the trigger should fire. For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`. | [required] | +**usage_category** | **crate::models::UsageTriggerEnumUsageCategory** | | [required] | +**callback_method** | Option<**String**> | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**recurring** | Option<**crate::models::UsageTriggerEnumRecurring**> | | | +**trigger_by** | Option<**crate::models::UsageTriggerEnumTriggerField**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_user_defined_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage create_user_defined_message(account_sid, call_sid, content, idempotency_key) + + +Create a new User Defined Message for the given Call SID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. | [required] | +**content** | **String** | The User Defined Message in the form of URL-encoded JSON string. | [required] | +**idempotency_key** | Option<**String**> | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage**](api.v2010.account.call.user_defined_message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_user_defined_message_subscription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription create_user_defined_message_subscription(account_sid, call_sid, callback, idempotency_key, method) + + +Subscribe to User Defined Messages for a given Call SID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages. | [required] | +**callback** | **String** | The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted). | [required] | +**idempotency_key** | Option<**String**> | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. | | +**method** | Option<**String**> | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription**](api.v2010.account.call.user_defined_message_subscription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_validation_request + +> crate::models::ApiPeriodV2010PeriodAccountPeriodValidationRequest create_validation_request(account_sid, phone_number, friendly_name, call_delay, extension, status_callback, status_callback_method) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. | [required] | +**phone_number** | **String** | The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number. | | +**call_delay** | Option<**i32**> | The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. | | +**extension** | Option<**String**> | The digits to dial after connecting the verification call. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodValidationRequest**](api.v2010.account.validation_request.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_address + +> delete_address(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_application + +> delete_application(account_sid, sid) + + +Delete the application by the specified application sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call + +> delete_call(account_sid, sid) + + +Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. | [required] | +**sid** | **String** | The Twilio-provided Call SID that uniquely identifies the Call resource to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call_feedback_summary + +> delete_call_feedback_summary(account_sid, sid) + + +Delete a FeedbackSummary resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies this resource. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call_recording + +> delete_call_recording(account_sid, call_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_conference_recording + +> delete_conference_recording(account_sid, conference_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_connect_app + +> delete_connect_app(account_sid, sid) + + +Delete an instance of a connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_incoming_phone_number + +> delete_incoming_phone_number(account_sid, sid) + + +Delete a phone-numbers belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_incoming_phone_number_assigned_add_on + +> delete_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid) + + +Remove the assignment of an Add-on installation from the Number specified. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_key + +> delete_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_media + +> delete_media(account_sid, message_sid, sid) + + +Delete media from your account. Once delete, you will no longer be billed + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. | [required] | +**message_sid** | **String** | The SID of the Message resource that this Media resource belongs to. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Media resource to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_message + +> delete_message(account_sid, sid) + + +Deletes a message record from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Message resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_outgoing_caller_id + +> delete_outgoing_caller_id(account_sid, sid) + + +Delete the caller-id specified from the account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_participant + +> delete_participant(account_sid, conference_sid, call_sid) + + +Kick a participant from a given conference + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. | [required] | +**conference_sid** | **String** | The SID of the conference with the participants to delete. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to delete. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_queue + +> delete_queue(account_sid, sid) + + +Remove an empty queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_recording + +> delete_recording(account_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_recording_add_on_result + +> delete_recording_add_on_result(account_sid, reference_sid, sid) + + +Delete a result and purge all associated Payloads + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to delete belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_recording_add_on_result_payload + +> delete_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, sid) + + +Delete a payload from the result along with all associated Data + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payloads to delete belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_recording_transcription + +> delete_recording_transcription(account_sid, recording_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_signing_key + +> delete_signing_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_calls_credential_list_mapping + +> delete_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a credential list mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_calls_ip_access_control_list_mapping + +> delete_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Delete an IP Access Control List mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_registrations_credential_list_mapping + +> delete_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a credential list mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential + +> delete_sip_credential(account_sid, credential_list_sid, sid) + + +Delete a credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credentials. | [required] | +**sid** | **String** | The unique id that identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential_list + +> delete_sip_credential_list(account_sid, sid) + + +Delete a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential_list_mapping + +> delete_sip_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a CredentialListMapping resource from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_domain + +> delete_sip_domain(account_sid, sid) + + +Delete an instance of a Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_access_control_list + +> delete_sip_ip_access_control_list(account_sid, sid) + + +Delete an IpAccessControlList from the requested account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_access_control_list_mapping + +> delete_sip_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Delete an IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_address + +> delete_sip_ip_address(account_sid, ip_access_control_list_sid, sid) + + +Delete an IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to delete. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_transcription + +> delete_transcription(account_sid, sid) + + +Delete a transcription from the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_usage_trigger + +> delete_usage_trigger(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_user_defined_message_subscription + +> delete_user_defined_message_subscription(account_sid, call_sid, sid) + + +Delete a specific User Defined Message Subscription. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. | [required] | +**sid** | **String** | The SID that uniquely identifies this User Defined Message Subscription. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_account + +> crate::models::ApiPeriodV2010PeriodAccount fetch_account(sid) + + +Fetch the account specified by the provided Account Sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Account Sid that uniquely identifies the account to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress fetch_address(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication fetch_application(account_sid, sid) + + +Fetch the application specified by the provided sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_authorized_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp fetch_authorized_connect_app(account_sid, connect_app_sid) + + +Fetch an instance of an authorized-connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. | [required] | +**connect_app_sid** | **String** | The SID of the Connect App to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp**](api.v2010.account.authorized_connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_available_phone_number_country + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry fetch_available_phone_number_country(account_sid, country_code) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country to fetch available phone number information about. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry**](api.v2010.account.available_phone_number_country.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_balance + +> crate::models::ApiPeriodV2010PeriodAccountPeriodBalance fetch_balance(account_sid) + + +Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique SID identifier of the Account. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodBalance**](api.v2010.account.balance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall fetch_call(account_sid, sid) + + +Fetch the call specified by the provided Call SID + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. | [required] | +**sid** | **String** | The SID of the Call resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback fetch_call_feedback(account_sid, call_sid) + + +Fetch a Feedback resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**call_sid** | **String** | The call sid that uniquely identifies the call | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback**](api.v2010.account.call.call_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_feedback_summary + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary fetch_call_feedback_summary(account_sid, sid) + + +Fetch a FeedbackSummary resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies this resource. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary**](api.v2010.account.call.call_feedback_summary.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_notification + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance fetch_call_notification(account_sid, call_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance**](api.v2010.account.call.call_notification-instance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording fetch_call_recording(account_sid, call_sid, sid) + + +Fetch an instance of a recording for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_conference + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConference fetch_conference(account_sid, sid) + + +Fetch an instance of a conference + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConference**](api.v2010.account.conference.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_conference_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording fetch_conference_recording(account_sid, conference_sid, sid) + + +Fetch an instance of a recording for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp fetch_connect_app(account_sid, sid) + + +Fetch an instance of a connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp**](api.v2010.account.connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber fetch_incoming_phone_number(account_sid, sid) + + +Fetch an incoming-phone-number belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_incoming_phone_number_assigned_add_on + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn fetch_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid) + + +Fetch an instance of an Add-on installation currently assigned to this Number. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_incoming_phone_number_assigned_add_on_extension + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension fetch_incoming_phone_number_assigned_add_on_extension(account_sid, resource_sid, assigned_add_on_sid, sid) + + +Fetch an instance of an Extension for the Assigned Add-on. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**assigned_add_on_sid** | **String** | The SID that uniquely identifies the assigned Add-on installation. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.incoming_phone_number_assigned_add_on_extension.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodKey fetch_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodKey**](api.v2010.account.key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_media + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia fetch_media(account_sid, message_sid, sid) + + +Fetch a single media instance belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. | [required] | +**message_sid** | **String** | The SID of the Message resource that this Media resource belongs to. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Media resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia**](api.v2010.account.message.media.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_member + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember fetch_member(account_sid, queue_sid, call_sid) + + +Fetch a specific member from the queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember**](api.v2010.account.queue.member.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage fetch_message(account_sid, sid) + + +Fetch a message belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Message resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_notification + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance fetch_notification(account_sid, sid) + + +Fetch a notification belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Notification resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance**](api.v2010.account.notification-instance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_outgoing_caller_id + +> crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId fetch_outgoing_caller_id(account_sid, sid) + + +Fetch an outgoing-caller-id belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId**](api.v2010.account.outgoing_caller_id.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant fetch_participant(account_sid, conference_sid, call_sid) + + +Fetch an instance of a participant + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. | [required] | +**conference_sid** | **String** | The SID of the conference with the participant to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to fetch. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue fetch_queue(account_sid, sid) + + +Fetch an instance of a queue identified by the QueueSid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecording fetch_recording(account_sid, sid, include_soft_deleted) + + +Fetch an instance of a recording + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] | +**include_soft_deleted** | Option<**bool**> | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecording**](api.v2010.account.recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_add_on_result + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult fetch_recording_add_on_result(account_sid, reference_sid, sid) + + +Fetch an instance of an AddOnResult + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to fetch belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult**](api.v2010.account.recording.recording_add_on_result.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_add_on_result_payload + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload fetch_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, sid) + + +Fetch an instance of a result payload + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payload to fetch belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload**](api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_transcription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription fetch_recording_transcription(account_sid, recording_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription**](api.v2010.account.recording.recording_transcription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_short_code + +> crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode fetch_short_code(account_sid, sid) + + +Fetch an instance of a short code + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ShortCode resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode**](api.v2010.account.short_code.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey fetch_signing_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey**](api.v2010.account.signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_calls_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping fetch_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of a credential list mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping fetch_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of an IP Access Control List mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_registrations_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping fetch_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of a credential list mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential fetch_sip_credential(account_sid, credential_list_sid, sid) + + +Fetch a single credential. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credential. | [required] | +**sid** | **String** | The unique id that identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList fetch_sip_credential_list(account_sid, sid) + + +Get a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping fetch_sip_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a single CredentialListMapping resource from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain fetch_sip_domain(account_sid, sid) + + +Fetch an instance of a Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList fetch_sip_ip_access_control_list(account_sid, sid) + + +Fetch a specific instance of an IpAccessControlList + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping fetch_sip_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Fetch an IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress fetch_sip_ip_address(account_sid, ip_access_control_list_sid, sid) + + +Read one IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to fetch. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the IpAddress resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_transcription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodTranscription fetch_transcription(account_sid, sid) + + +Fetch an instance of a Transcription + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodTranscription**](api.v2010.account.transcription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger fetch_usage_trigger(account_sid, sid) + + +Fetch and instance of a usage-trigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_account + +> crate::models::ListAccountResponse list_account(friendly_name, status, page_size, page, page_token) + + +Retrieves a collection of Accounts belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | Only return the Account resources with friendly names that exactly match this name. | | +**status** | Option<**AccountEnumStatus**> | Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAccountResponse**](ListAccountResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_address + +> crate::models::ListAddressResponse list_address(account_sid, customer_name, friendly_name, iso_country, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. | [required] | +**customer_name** | Option<**String**> | The `customer_name` of the Address resources to read. | | +**friendly_name** | Option<**String**> | The string that identifies the Address resources to read. | | +**iso_country** | Option<**String**> | The ISO country code of the Address resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAddressResponse**](ListAddressResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_application + +> crate::models::ListApplicationResponse list_application(account_sid, friendly_name, page_size, page, page_token) + + +Retrieve a list of applications representing an application within the requesting account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. | [required] | +**friendly_name** | Option<**String**> | The string that identifies the Application resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListApplicationResponse**](ListApplicationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_authorized_connect_app + +> crate::models::ListAuthorizedConnectAppResponse list_authorized_connect_app(account_sid, page_size, page, page_token) + + +Retrieve a list of authorized-connect-apps belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAuthorizedConnectAppResponse**](ListAuthorizedConnectAppResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_country + +> crate::models::ListAvailablePhoneNumberCountryResponse list_available_phone_number_country(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberCountryResponse**](ListAvailablePhoneNumberCountryResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_local + +> crate::models::ListAvailablePhoneNumberLocalResponse list_available_phone_number_local(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberLocalResponse**](ListAvailablePhoneNumberLocalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_machine_to_machine + +> crate::models::ListAvailablePhoneNumberMachineToMachineResponse list_available_phone_number_machine_to_machine(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberMachineToMachineResponse**](ListAvailablePhoneNumberMachineToMachineResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_mobile + +> crate::models::ListAvailablePhoneNumberMobileResponse list_available_phone_number_mobile(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberMobileResponse**](ListAvailablePhoneNumberMobileResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_national + +> crate::models::ListAvailablePhoneNumberNationalResponse list_available_phone_number_national(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberNationalResponse**](ListAvailablePhoneNumberNationalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_shared_cost + +> crate::models::ListAvailablePhoneNumberSharedCostResponse list_available_phone_number_shared_cost(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberSharedCostResponse**](ListAvailablePhoneNumberSharedCostResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_toll_free + +> crate::models::ListAvailablePhoneNumberTollFreeResponse list_available_phone_number_toll_free(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberTollFreeResponse**](ListAvailablePhoneNumberTollFreeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_voip + +> crate::models::ListAvailablePhoneNumberVoipResponse list_available_phone_number_voip(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberVoipResponse**](ListAvailablePhoneNumberVoipResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call + +> crate::models::ListCallResponse list_call(account_sid, to, from, parent_call_sid, status, start_time, start_time_less_than, start_time_greater_than, end_time, end_time_less_than, end_time_greater_than, page_size, page, page_token) + + +Retrieves a collection of calls made to and from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. | [required] | +**to** | Option<**String**> | Only show calls made to this phone number, SIP address, Client identifier or SIM SID. | | +**from** | Option<**String**> | Only include calls from this phone number, SIP address, Client identifier or SIM SID. | | +**parent_call_sid** | Option<**String**> | Only include calls spawned by calls with this SID. | | +**status** | Option<**CallEnumStatus**> | The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. | | +**start_time** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**start_time_less_than** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**start_time_greater_than** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**end_time** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**end_time_less_than** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**end_time_greater_than** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallResponse**](ListCallResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call_event + +> crate::models::ListCallEventResponse list_call_event(account_sid, call_sid, page_size, page, page_token) + + +Retrieve a list of all events for a call. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique SID identifier of the Account. | [required] | +**call_sid** | **String** | The unique SID identifier of the Call. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallEventResponse**](ListCallEventResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call_notification + +> crate::models::ListCallNotificationResponse list_call_notification(account_sid, call_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. | [required] | +**log** | Option<**i32**> | Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. | | +**message_date** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_less_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_greater_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallNotificationResponse**](ListCallNotificationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call_recording + +> crate::models::ListCallRecordingResponse list_call_recording(account_sid, call_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the call used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallRecordingResponse**](ListCallRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_conference + +> crate::models::ListConferenceResponse list_conference(account_sid, date_created, date_created_less_than, date_created_greater_than, date_updated, date_updated_less_than, date_updated_greater_than, friendly_name, status, page_size, page, page_token) + + +Retrieve a list of conferences belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_updated** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**date_updated_less_than** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**date_updated_greater_than** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**friendly_name** | Option<**String**> | The string that identifies the Conference resources to read. | | +**status** | Option<**ConferenceEnumStatus**> | The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConferenceResponse**](ListConferenceResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_conference_recording + +> crate::models::ListConferenceRecordingResponse list_conference_recording(account_sid, conference_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the call used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConferenceRecordingResponse**](ListConferenceRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_connect_app + +> crate::models::ListConnectAppResponse list_connect_app(account_sid, page_size, page, page_token) + + +Retrieve a list of connect-apps belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConnectAppResponse**](ListConnectAppResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_dependent_phone_number + +> crate::models::ListDependentPhoneNumberResponse list_dependent_phone_number(account_sid, address_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. | [required] | +**address_sid** | **String** | The SID of the Address resource associated with the phone number. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListDependentPhoneNumberResponse**](ListDependentPhoneNumberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number + +> crate::models::ListIncomingPhoneNumberResponse list_incoming_phone_number(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + +Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the IncomingPhoneNumber resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberResponse**](ListIncomingPhoneNumberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_assigned_add_on + +> crate::models::ListIncomingPhoneNumberAssignedAddOnResponse list_incoming_phone_number_assigned_add_on(account_sid, resource_sid, page_size, page, page_token) + + +Retrieve a list of Add-on installations currently assigned to this Number. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberAssignedAddOnResponse**](ListIncomingPhoneNumberAssignedAddOnResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_assigned_add_on_extension + +> crate::models::ListIncomingPhoneNumberAssignedAddOnExtensionResponse list_incoming_phone_number_assigned_add_on_extension(account_sid, resource_sid, assigned_add_on_sid, page_size, page, page_token) + + +Retrieve a list of Extensions for the Assigned Add-on. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**assigned_add_on_sid** | **String** | The SID that uniquely identifies the assigned Add-on installation. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberAssignedAddOnExtensionResponse**](ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_local + +> crate::models::ListIncomingPhoneNumberLocalResponse list_incoming_phone_number_local(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberLocalResponse**](ListIncomingPhoneNumberLocalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_mobile + +> crate::models::ListIncomingPhoneNumberMobileResponse list_incoming_phone_number_mobile(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberMobileResponse**](ListIncomingPhoneNumberMobileResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_toll_free + +> crate::models::ListIncomingPhoneNumberTollFreeResponse list_incoming_phone_number_toll_free(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberTollFreeResponse**](ListIncomingPhoneNumberTollFreeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_key + +> crate::models::ListKeyResponse list_key(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListKeyResponse**](ListKeyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_media + +> crate::models::ListMediaResponse list_media(account_sid, message_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Retrieve a list of Media resources belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. | [required] | +**message_sid** | **String** | The SID of the Message resource that this Media resource belongs to. | [required] | +**date_created** | Option<**String**> | Only include media that was created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read media that was created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read media that was created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read media that was created on or after midnight of this date. | | +**date_created_less_than** | Option<**String**> | Only include media that was created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read media that was created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read media that was created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read media that was created on or after midnight of this date. | | +**date_created_greater_than** | Option<**String**> | Only include media that was created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read media that was created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read media that was created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read media that was created on or after midnight of this date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMediaResponse**](ListMediaResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_member + +> crate::models::ListMemberResponse list_member(account_sid, queue_sid, page_size, page, page_token) + + +Retrieve the members of the queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMemberResponse**](ListMemberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_message + +> crate::models::ListMessageResponse list_message(account_sid, to, from, date_sent, date_sent_less_than, date_sent_greater_than, page_size, page, page_token) + + +Retrieve a list of messages belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. | [required] | +**to** | Option<**String**> | Read messages sent to only this phone number. | | +**from** | Option<**String**> | Read messages sent from only this phone number or alphanumeric sender ID. | | +**date_sent** | Option<**String**> | The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date. | | +**date_sent_less_than** | Option<**String**> | The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date. | | +**date_sent_greater_than** | Option<**String**> | The date of the messages to show. Specify a date as `YYYY-MM-DD` in GMT to read only messages sent on this date. For example: `2009-07-06`. You can also specify an inequality, such as `DateSent<=YYYY-MM-DD`, to read messages sent on or before midnight on a date, and `DateSent>=YYYY-MM-DD` to read messages sent on or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMessageResponse**](ListMessageResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_notification + +> crate::models::ListNotificationResponse list_notification(account_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token) + + +Retrieve a list of notifications belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. | [required] | +**log** | Option<**i32**> | Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. | | +**message_date** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_less_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_greater_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListNotificationResponse**](ListNotificationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_outgoing_caller_id + +> crate::models::ListOutgoingCallerIdResponse list_outgoing_caller_id(account_sid, phone_number, friendly_name, page_size, page, page_token) + + +Retrieve a list of outgoing-caller-ids belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. | [required] | +**phone_number** | Option<**String**> | The phone number of the OutgoingCallerId resources to read. | | +**friendly_name** | Option<**String**> | The string that identifies the OutgoingCallerId resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListOutgoingCallerIdResponse**](ListOutgoingCallerIdResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_participant + +> crate::models::ListParticipantResponse list_participant(account_sid, conference_sid, muted, hold, coaching, page_size, page, page_token) + + +Retrieve a list of participants belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. | [required] | +**conference_sid** | **String** | The SID of the conference with the participants to read. | [required] | +**muted** | Option<**bool**> | Whether to return only participants that are muted. Can be: `true` or `false`. | | +**hold** | Option<**bool**> | Whether to return only participants that are on hold. Can be: `true` or `false`. | | +**coaching** | Option<**bool**> | Whether to return only participants who are coaching another call. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListParticipantResponse**](ListParticipantResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_queue + +> crate::models::ListQueueResponse list_queue(account_sid, page_size, page, page_token) + + +Retrieve a list of queues belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListQueueResponse**](ListQueueResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording + +> crate::models::ListRecordingResponse list_recording(account_sid, date_created, date_created_less_than, date_created_greater_than, call_sid, conference_sid, include_soft_deleted, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | [required] | +**date_created** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**date_created_less_than** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**date_created_greater_than** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**call_sid** | Option<**String**> | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | | +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording to read. | | +**include_soft_deleted** | Option<**bool**> | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingResponse**](ListRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_add_on_result + +> crate::models::ListRecordingAddOnResultResponse list_recording_add_on_result(account_sid, reference_sid, page_size, page, page_token) + + +Retrieve a list of results belonging to the recording + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to read belongs. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingAddOnResultResponse**](ListRecordingAddOnResultResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_add_on_result_payload + +> crate::models::ListRecordingAddOnResultPayloadResponse list_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, page_size, page, page_token) + + +Retrieve a list of payloads belonging to the AddOnResult + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payloads to read belongs. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingAddOnResultPayloadResponse**](ListRecordingAddOnResultPayloadResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_transcription + +> crate::models::ListRecordingTranscriptionResponse list_recording_transcription(account_sid, recording_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingTranscriptionResponse**](ListRecordingTranscriptionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_short_code + +> crate::models::ListShortCodeResponse list_short_code(account_sid, friendly_name, short_code, page_size, page, page_token) + + +Retrieve a list of short-codes belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. | [required] | +**friendly_name** | Option<**String**> | The string that identifies the ShortCode resources to read. | | +**short_code** | Option<**String**> | Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListShortCodeResponse**](ListShortCodeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_signing_key + +> crate::models::ListSigningKeyResponse list_signing_key(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSigningKeyResponse**](ListSigningKeyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_calls_credential_list_mapping + +> crate::models::ListSipAuthCallsCredentialListMappingResponse list_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthCallsCredentialListMappingResponse**](ListSipAuthCallsCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ListSipAuthCallsIpAccessControlListMappingResponse list_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of IP Access Control List mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthCallsIpAccessControlListMappingResponse**](ListSipAuthCallsIpAccessControlListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_registrations_credential_list_mapping + +> crate::models::ListSipAuthRegistrationsCredentialListMappingResponse list_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthRegistrationsCredentialListMappingResponse**](ListSipAuthRegistrationsCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential + +> crate::models::ListSipCredentialResponse list_sip_credential(account_sid, credential_list_sid, page_size, page, page_token) + + +Retrieve a list of credentials. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credentials. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialResponse**](ListSipCredentialResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential_list + +> crate::models::ListSipCredentialListResponse list_sip_credential_list(account_sid, page_size, page, page_token) + + +Get All Credential Lists + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialListResponse**](ListSipCredentialListResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential_list_mapping + +> crate::models::ListSipCredentialListMappingResponse list_sip_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Read multiple CredentialListMapping resources from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialListMappingResponse**](ListSipCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_domain + +> crate::models::ListSipDomainResponse list_sip_domain(account_sid, page_size, page, page_token) + + +Retrieve a list of domains belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipDomainResponse**](ListSipDomainResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_access_control_list + +> crate::models::ListSipIpAccessControlListResponse list_sip_ip_access_control_list(account_sid, page_size, page, page_token) + + +Retrieve a list of IpAccessControlLists that belong to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAccessControlListResponse**](ListSipIpAccessControlListResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_access_control_list_mapping + +> crate::models::ListSipIpAccessControlListMappingResponse list_sip_ip_access_control_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of IpAccessControlListMapping resources. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAccessControlListMappingResponse**](ListSipIpAccessControlListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_address + +> crate::models::ListSipIpAddressResponse list_sip_ip_address(account_sid, ip_access_control_list_sid, page_size, page, page_token) + + +Read multiple IpAddress resources. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAddressResponse**](ListSipIpAddressResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_transcription + +> crate::models::ListTranscriptionResponse list_transcription(account_sid, page_size, page, page_token) + + +Retrieve a list of transcriptions belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListTranscriptionResponse**](ListTranscriptionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record + +> crate::models::ListUsageRecordResponse list_usage_record(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + +Retrieve a list of usage-records belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordResponse**](ListUsageRecordResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_all_time + +> crate::models::ListUsageRecordAllTimeResponse list_usage_record_all_time(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordAllTimeEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordAllTimeResponse**](ListUsageRecordAllTimeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_daily + +> crate::models::ListUsageRecordDailyResponse list_usage_record_daily(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordDailyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordDailyResponse**](ListUsageRecordDailyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_last_month + +> crate::models::ListUsageRecordLastMonthResponse list_usage_record_last_month(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordLastMonthEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordLastMonthResponse**](ListUsageRecordLastMonthResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_monthly + +> crate::models::ListUsageRecordMonthlyResponse list_usage_record_monthly(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordMonthlyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordMonthlyResponse**](ListUsageRecordMonthlyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_this_month + +> crate::models::ListUsageRecordThisMonthResponse list_usage_record_this_month(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordThisMonthEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordThisMonthResponse**](ListUsageRecordThisMonthResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_today + +> crate::models::ListUsageRecordTodayResponse list_usage_record_today(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordTodayEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordTodayResponse**](ListUsageRecordTodayResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_yearly + +> crate::models::ListUsageRecordYearlyResponse list_usage_record_yearly(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordYearlyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordYearlyResponse**](ListUsageRecordYearlyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_record_yesterday + +> crate::models::ListUsageRecordYesterdayResponse list_usage_record_yesterday(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordYesterdayEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordYesterdayResponse**](ListUsageRecordYesterdayResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_trigger + +> crate::models::ListUsageTriggerResponse list_usage_trigger(account_sid, recurring, trigger_by, usage_category, page_size, page, page_token) + + +Retrieve a list of usage-triggers belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. | [required] | +**recurring** | Option<**UsageTriggerEnumRecurring**> | The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. | | +**trigger_by** | Option<**UsageTriggerEnumTriggerField**> | The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). | | +**usage_category** | Option<**UsageTriggerEnumUsageCategory**> | The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageTriggerResponse**](ListUsageTriggerResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_account + +> crate::models::ApiPeriodV2010PeriodAccount update_account(sid, friendly_name, status) + + +Modify the properties of a given Account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Account Sid that uniquely identifies the account to update | [required] | +**friendly_name** | Option<**String**> | Update the human-readable description of this Account | | +**status** | Option<**crate::models::AccountEnumStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress update_address(account_sid, sid, friendly_name, customer_name, street, city, region, postal_code, emergency_enabled, auto_correct_address, street_secondary) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the address. It can be up to 64 characters long. | | +**customer_name** | Option<**String**> | The name to associate with the address. | | +**street** | Option<**String**> | The number and street address of the address. | | +**city** | Option<**String**> | The city of the address. | | +**region** | Option<**String**> | The state or region of the address. | | +**postal_code** | Option<**String**> | The postal code of the address. | | +**emergency_enabled** | Option<**bool**> | Whether to enable emergency calling on the address. Can be: `true` or `false`. | | +**auto_correct_address** | Option<**bool**> | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. | | +**street_secondary** | Option<**String**> | The additional number and street address of the address. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication update_application(account_sid, sid, friendly_name, api_version, voice_url, voice_method, voice_fallback_url, voice_fallback_method, status_callback, status_callback_method, voice_caller_id_lookup, sms_url, sms_method, sms_fallback_url, sms_fallback_method, sms_status_callback, message_status_callback, public_application_connect_enabled) + + +Updates the application's properties + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version. | | +**voice_url** | Option<**String**> | The URL we should call when the phone number assigned to this application receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**sms_method** | Option<**String**> | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | | +**sms_status_callback** | Option<**String**> | Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility. | | +**message_status_callback** | Option<**String**> | The URL we should call using a POST method to send message status information to your application. | | +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall update_call(account_sid, sid, url, method, status, fallback_url, fallback_method, status_callback, status_callback_method, twiml, time_limit) + + +Initiates a call redirect or terminates a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Call resource to update | [required] | +**url** | Option<**String**> | The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). | | +**method** | Option<**String**> | The HTTP method we should use when calling the `url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status** | Option<**crate::models::CallEnumUpdateStatus**> | | | +**fallback_url** | Option<**String**> | The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_method** | Option<**String**> | The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). | | +**status_callback_method** | Option<**String**> | The HTTP method we should use when requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**twiml** | Option<**String**> | TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback update_call_feedback(account_sid, call_sid, quality_score, issue) + + +Update a Feedback resource for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**call_sid** | **String** | The call sid that uniquely identifies the call | [required] | +**quality_score** | Option<**i32**> | The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. | | +**issue** | Option<[**Vec**](crate::models::CallFeedbackEnumIssues.md)> | One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback**](api.v2010.account.call.call_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording update_call_recording(account_sid, call_sid, sid, status, pause_behavior) + + +Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to update. | [required] | +**status** | **crate::models::CallRecordingEnumStatus** | | [required] | +**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_conference + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConference update_conference(account_sid, sid, status, announce_url, announce_method) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference resource to update | [required] | +**status** | Option<**crate::models::ConferenceEnumUpdateStatus**> | | | +**announce_url** | Option<**String**> | The URL we should call to announce something into the conference. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**announce_method** | Option<**String**> | The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConference**](api.v2010.account.conference.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_conference_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording update_conference_recording(account_sid, conference_sid, sid, status, pause_behavior) + + +Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | [required] | +**status** | **crate::models::ConferenceRecordingEnumStatus** | | [required] | +**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp update_connect_app(account_sid, sid, authorize_redirect_url, company_name, deauthorize_callback_method, deauthorize_callback_url, description, friendly_name, homepage_url, permissions) + + +Update a connect-app with the specified parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to update. | [required] | +**authorize_redirect_url** | Option<**String**> | The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | | +**company_name** | Option<**String**> | The company name to set for the Connect App. | | +**deauthorize_callback_method** | Option<**String**> | The HTTP method to use when calling `deauthorize_callback_url`. | | +**deauthorize_callback_url** | Option<**String**> | The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | | +**description** | Option<**String**> | A description of the Connect App. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**homepage_url** | Option<**String**> | A public URL where users can obtain more information about this Connect App. | | +**permissions** | Option<[**Vec**](crate::models::ConnectAppEnumPermission.md)> | A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp**](api.v2010.account.connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber update_incoming_phone_number(account_sid, sid, account_sid2, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, identity_sid, address_sid, bundle_sid) + + +Update an incoming-phone-number instance. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. | [required] | +**account_sid2** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). | | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle phone calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from this phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle phone calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**> | | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodKey update_key(account_sid, sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodKey**](api.v2010.account.key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_member + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember update_member(account_sid, queue_sid, call_sid, url, method) + + +Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. | [required] | +**url** | **String** | The absolute URL of the Queue resource. | [required] | +**method** | Option<**String**> | How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember**](api.v2010.account.queue.member.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage update_message(account_sid, sid, body, status) + + +To redact a message-body from a post-flight message record, post to the message instance resource with an empty body + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Message resource to update. | [required] | +**body** | Option<**String**> | The text of the message you want to send. Can be up to 1,600 characters long. | | +**status** | Option<**crate::models::MessageEnumUpdateStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_outgoing_caller_id + +> crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId update_outgoing_caller_id(account_sid, sid, friendly_name) + + +Updates the caller-id + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId**](api.v2010.account.outgoing_caller_id.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant update_participant(account_sid, conference_sid, call_sid, muted, hold, hold_url, hold_method, announce_url, announce_method, wait_url, wait_method, beep_on_exit, end_conference_on_exit, coaching, call_sid_to_coach) + + +Update the properties of the participant + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. | [required] | +**conference_sid** | **String** | The SID of the conference with the participant to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | +**muted** | Option<**bool**> | Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`. | | +**hold** | Option<**bool**> | Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference. | | +**hold_url** | Option<**String**> | The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**hold_method** | Option<**String**> | The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | | +**announce_url** | Option<**String**> | The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**announce_method** | Option<**String**> | The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**wait_url** | Option<**String**> | The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). | | +**wait_method** | Option<**String**> | The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. | | +**beep_on_exit** | Option<**bool**> | Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | | +**end_conference_on_exit** | Option<**bool**> | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | | +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | | +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_payments + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments update_payments(account_sid, call_sid, sid, idempotency_key, status_callback, capture, status) + + +update an instance of payments with different phases of payment flows. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. | [required] | +**call_sid** | **String** | The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. | [required] | +**sid** | **String** | The SID of Payments session that needs to be updated. | [required] | +**idempotency_key** | **String** | A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. | [required] | +**status_callback** | **String** | Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests. | [required] | +**capture** | Option<**crate::models::PaymentsEnumCapture**> | | | +**status** | Option<**crate::models::PaymentsEnumStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments**](api.v2010.account.call.payments.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue update_queue(account_sid, sid, friendly_name, max_size) + + +Update the queue with the new parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to update | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | | +**max_size** | Option<**i32**> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_short_code + +> crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode update_short_code(account_sid, sid, friendly_name, api_version, sms_url, sms_method, sms_fallback_url, sms_fallback_method) + + +Update a short code with the following parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ShortCode resource to update | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this resource. It can be up to 64 characters long. By default, the `FriendlyName` is the short code. | | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | | +**sms_url** | Option<**String**> | The URL we should call when receiving an incoming SMS message to this short code. | | +**sms_method** | Option<**String**> | The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode**](api.v2010.account.short_code.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey update_signing_key(account_sid, sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | +**friendly_name** | Option<**String**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey**](api.v2010.account.signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential update_sip_credential(account_sid, credential_list_sid, sid, password) + + +Update a credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that includes this credential. | [required] | +**sid** | **String** | The unique id that identifies the resource to update. | [required] | +**password** | Option<**String**> | The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList update_sip_credential_list(account_sid, sid, friendly_name) + + +Update a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | +**friendly_name** | **String** | A human readable descriptive text for a CredentialList, up to 64 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain update_sip_domain(account_sid, sid, friendly_name, voice_fallback_method, voice_fallback_url, voice_method, voice_status_callback_method, voice_status_callback_url, voice_url, sip_registration, domain_name, emergency_calling_enabled, secure, byoc_trunk_sid, emergency_caller_sid) + + +Update the attributes of a domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url` | | +**voice_status_callback_method** | Option<**String**> | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | | +**voice_status_callback_url** | Option<**String**> | The URL that we should call to pass status parameters (such as call ended) to your application. | | +**voice_url** | Option<**String**> | The URL we should call when the domain receives a call. | | +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. | | +**domain_name** | Option<**String**> | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. | | +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | | +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | | +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | | +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList update_sip_ip_access_control_list(account_sid, sid, friendly_name) + + +Rename an IpAccessControlList + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to udpate. | [required] | +**friendly_name** | **String** | A human readable descriptive text, up to 255 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress update_sip_ip_address(account_sid, ip_access_control_list_sid, sid, ip_address, friendly_name, cidr_prefix_length) + + +Update an IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to update. | [required] | +**sid** | **String** | A 34 character string that identifies the IpAddress resource to update. | [required] | +**ip_address** | Option<**String**> | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | | +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 255 characters long. | | +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_siprec + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec update_siprec(account_sid, call_sid, sid, status) + + +Stop a Siprec using either the SID of the Siprec resource or the `name` used when creating the resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [required] | +**sid** | **String** | The SID of the Siprec resource, or the `name` used when creating the resource | [required] | +**status** | **crate::models::SiprecEnumUpdateStatus** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec**](api.v2010.account.call.siprec.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_stream + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream update_stream(account_sid, call_sid, sid, status) + + +Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [required] | +**sid** | **String** | The SID of the Stream resource, or the `name` used when creating the resource | [required] | +**status** | **crate::models::StreamEnumUpdateStatus** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream**](api.v2010.account.call.stream.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger update_usage_trigger(account_sid, sid, callback_method, callback_url, friendly_name) + + +Update an instance of a usage trigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. | [required] | +**callback_method** | Option<**String**> | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | | +**callback_url** | Option<**String**> | The URL we should call using `callback_method` when the trigger fires. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/twil-api/docs/DependentPhoneNumberEnumAddressRequirement.md b/twil-api/docs/DependentPhoneNumberEnumAddressRequirement.md new file mode 100644 index 0000000..0288ec9 --- /dev/null +++ b/twil-api/docs/DependentPhoneNumberEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# DependentPhoneNumberEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/DependentPhoneNumberEnumEmergencyStatus.md b/twil-api/docs/DependentPhoneNumberEnumEmergencyStatus.md new file mode 100644 index 0000000..d3796e1 --- /dev/null +++ b/twil-api/docs/DependentPhoneNumberEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# DependentPhoneNumberEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberEnumAddressRequirement.md b/twil-api/docs/IncomingPhoneNumberEnumAddressRequirement.md new file mode 100644 index 0000000..8046504 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md b/twil-api/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md new file mode 100644 index 0000000..4956642 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberEnumEmergencyStatus.md b/twil-api/docs/IncomingPhoneNumberEnumEmergencyStatus.md new file mode 100644 index 0000000..99c9c20 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md b/twil-api/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md new file mode 100644 index 0000000..5105586 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md b/twil-api/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md new file mode 100644 index 0000000..ae7af87 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md b/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md new file mode 100644 index 0000000..3950226 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md b/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md new file mode 100644 index 0000000..5e1b33a --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md b/twil-api/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md new file mode 100644 index 0000000..e8f1b78 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md b/twil-api/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md new file mode 100644 index 0000000..2b6164d --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md b/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md new file mode 100644 index 0000000..bfa41af --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md b/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md new file mode 100644 index 0000000..1172b90 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md b/twil-api/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md new file mode 100644 index 0000000..b41c5c0 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md b/twil-api/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md new file mode 100644 index 0000000..559d38d --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md b/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md new file mode 100644 index 0000000..822e939 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md b/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md new file mode 100644 index 0000000..e59388f --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md b/twil-api/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md new file mode 100644 index 0000000..c4b0e52 --- /dev/null +++ b/twil-api/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAccountResponse.md b/twil-api/docs/ListAccountResponse.md new file mode 100644 index 0000000..649888e --- /dev/null +++ b/twil-api/docs/ListAccountResponse.md @@ -0,0 +1,19 @@ +# ListAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | Option<[**Vec**](api.v2010.account.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAddressResponse.md b/twil-api/docs/ListAddressResponse.md new file mode 100644 index 0000000..1f443d6 --- /dev/null +++ b/twil-api/docs/ListAddressResponse.md @@ -0,0 +1,19 @@ +# ListAddressResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | Option<[**Vec**](api.v2010.account.address.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListApplicationResponse.md b/twil-api/docs/ListApplicationResponse.md new file mode 100644 index 0000000..39e39df --- /dev/null +++ b/twil-api/docs/ListApplicationResponse.md @@ -0,0 +1,19 @@ +# ListApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applications** | Option<[**Vec**](api.v2010.account.application.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAuthorizedConnectAppResponse.md b/twil-api/docs/ListAuthorizedConnectAppResponse.md new file mode 100644 index 0000000..c637fa7 --- /dev/null +++ b/twil-api/docs/ListAuthorizedConnectAppResponse.md @@ -0,0 +1,19 @@ +# ListAuthorizedConnectAppResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorized_connect_apps** | Option<[**Vec**](api.v2010.account.authorized_connect_app.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberCountryResponse.md b/twil-api/docs/ListAvailablePhoneNumberCountryResponse.md new file mode 100644 index 0000000..53c746e --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberCountryResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberCountryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countries** | Option<[**Vec**](api.v2010.account.available_phone_number_country.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberLocalResponse.md b/twil-api/docs/ListAvailablePhoneNumberLocalResponse.md new file mode 100644 index 0000000..677f53e --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberLocalResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberLocalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_local.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberMachineToMachineResponse.md b/twil-api/docs/ListAvailablePhoneNumberMachineToMachineResponse.md new file mode 100644 index 0000000..1b6355e --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberMachineToMachineResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMachineToMachineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_machine_to_machine.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberMobileResponse.md b/twil-api/docs/ListAvailablePhoneNumberMobileResponse.md new file mode 100644 index 0000000..51cd2b3 --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberMobileResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMobileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_mobile.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberNationalResponse.md b/twil-api/docs/ListAvailablePhoneNumberNationalResponse.md new file mode 100644 index 0000000..b3a1e63 --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberNationalResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberNationalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_national.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberSharedCostResponse.md b/twil-api/docs/ListAvailablePhoneNumberSharedCostResponse.md new file mode 100644 index 0000000..9dd25ef --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberSharedCostResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberSharedCostResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_shared_cost.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberTollFreeResponse.md b/twil-api/docs/ListAvailablePhoneNumberTollFreeResponse.md new file mode 100644 index 0000000..89c70a0 --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberTollFreeResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberTollFreeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_toll_free.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListAvailablePhoneNumberVoipResponse.md b/twil-api/docs/ListAvailablePhoneNumberVoipResponse.md new file mode 100644 index 0000000..f82978d --- /dev/null +++ b/twil-api/docs/ListAvailablePhoneNumberVoipResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberVoipResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_voip.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListCallEventResponse.md b/twil-api/docs/ListCallEventResponse.md new file mode 100644 index 0000000..f1491e7 --- /dev/null +++ b/twil-api/docs/ListCallEventResponse.md @@ -0,0 +1,19 @@ +# ListCallEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | Option<[**Vec**](api.v2010.account.call.call_event.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListCallNotificationResponse.md b/twil-api/docs/ListCallNotificationResponse.md new file mode 100644 index 0000000..a5f39fc --- /dev/null +++ b/twil-api/docs/ListCallNotificationResponse.md @@ -0,0 +1,19 @@ +# ListCallNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | Option<[**Vec**](api.v2010.account.call.call_notification.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListCallRecordingResponse.md b/twil-api/docs/ListCallRecordingResponse.md new file mode 100644 index 0000000..aae5e5a --- /dev/null +++ b/twil-api/docs/ListCallRecordingResponse.md @@ -0,0 +1,19 @@ +# ListCallRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.call.call_recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListCallResponse.md b/twil-api/docs/ListCallResponse.md new file mode 100644 index 0000000..5a1d20a --- /dev/null +++ b/twil-api/docs/ListCallResponse.md @@ -0,0 +1,19 @@ +# ListCallResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**calls** | Option<[**Vec**](api.v2010.account.call.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListConferenceRecordingResponse.md b/twil-api/docs/ListConferenceRecordingResponse.md new file mode 100644 index 0000000..f3bcd8c --- /dev/null +++ b/twil-api/docs/ListConferenceRecordingResponse.md @@ -0,0 +1,19 @@ +# ListConferenceRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.conference.conference_recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListConferenceResponse.md b/twil-api/docs/ListConferenceResponse.md new file mode 100644 index 0000000..e77c646 --- /dev/null +++ b/twil-api/docs/ListConferenceResponse.md @@ -0,0 +1,19 @@ +# ListConferenceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conferences** | Option<[**Vec**](api.v2010.account.conference.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListConnectAppResponse.md b/twil-api/docs/ListConnectAppResponse.md new file mode 100644 index 0000000..92bfc68 --- /dev/null +++ b/twil-api/docs/ListConnectAppResponse.md @@ -0,0 +1,19 @@ +# ListConnectAppResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connect_apps** | Option<[**Vec**](api.v2010.account.connect_app.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListDependentPhoneNumberResponse.md b/twil-api/docs/ListDependentPhoneNumberResponse.md new file mode 100644 index 0000000..3c04553 --- /dev/null +++ b/twil-api/docs/ListDependentPhoneNumberResponse.md @@ -0,0 +1,19 @@ +# ListDependentPhoneNumberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dependent_phone_numbers** | Option<[**Vec**](api.v2010.account.address.dependent_phone_number.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md b/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md new file mode 100644 index 0000000..2335c4f --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOnExtensionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extensions** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.incoming_phone_number_assigned_add_on_extension.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md b/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md new file mode 100644 index 0000000..1163bc0 --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOnResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assigned_add_ons** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberLocalResponse.md b/twil-api/docs/ListIncomingPhoneNumberLocalResponse.md new file mode 100644 index 0000000..d7b0f5e --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberLocalResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberLocalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_local.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberMobileResponse.md b/twil-api/docs/ListIncomingPhoneNumberMobileResponse.md new file mode 100644 index 0000000..e8d92be --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberMobileResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberMobileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_mobile.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberResponse.md b/twil-api/docs/ListIncomingPhoneNumberResponse.md new file mode 100644 index 0000000..093c3b6 --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListIncomingPhoneNumberTollFreeResponse.md b/twil-api/docs/ListIncomingPhoneNumberTollFreeResponse.md new file mode 100644 index 0000000..008b4d9 --- /dev/null +++ b/twil-api/docs/ListIncomingPhoneNumberTollFreeResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberTollFreeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_toll_free.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListKeyResponse.md b/twil-api/docs/ListKeyResponse.md new file mode 100644 index 0000000..7b9e8ad --- /dev/null +++ b/twil-api/docs/ListKeyResponse.md @@ -0,0 +1,19 @@ +# ListKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | Option<[**Vec**](api.v2010.account.key.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListMediaResponse.md b/twil-api/docs/ListMediaResponse.md new file mode 100644 index 0000000..5ec4453 --- /dev/null +++ b/twil-api/docs/ListMediaResponse.md @@ -0,0 +1,19 @@ +# ListMediaResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_list** | Option<[**Vec**](api.v2010.account.message.media.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListMemberResponse.md b/twil-api/docs/ListMemberResponse.md new file mode 100644 index 0000000..4e95935 --- /dev/null +++ b/twil-api/docs/ListMemberResponse.md @@ -0,0 +1,19 @@ +# ListMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queue_members** | Option<[**Vec**](api.v2010.account.queue.member.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListMessageResponse.md b/twil-api/docs/ListMessageResponse.md new file mode 100644 index 0000000..c56f6f3 --- /dev/null +++ b/twil-api/docs/ListMessageResponse.md @@ -0,0 +1,19 @@ +# ListMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messages** | Option<[**Vec**](api.v2010.account.message.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListNotificationResponse.md b/twil-api/docs/ListNotificationResponse.md new file mode 100644 index 0000000..6bc1857 --- /dev/null +++ b/twil-api/docs/ListNotificationResponse.md @@ -0,0 +1,19 @@ +# ListNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | Option<[**Vec**](api.v2010.account.notification.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListOutgoingCallerIdResponse.md b/twil-api/docs/ListOutgoingCallerIdResponse.md new file mode 100644 index 0000000..93ec9e9 --- /dev/null +++ b/twil-api/docs/ListOutgoingCallerIdResponse.md @@ -0,0 +1,19 @@ +# ListOutgoingCallerIdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outgoing_caller_ids** | Option<[**Vec**](api.v2010.account.outgoing_caller_id.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListParticipantResponse.md b/twil-api/docs/ListParticipantResponse.md new file mode 100644 index 0000000..fe5bee1 --- /dev/null +++ b/twil-api/docs/ListParticipantResponse.md @@ -0,0 +1,19 @@ +# ListParticipantResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**participants** | Option<[**Vec**](api.v2010.account.conference.participant.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListQueueResponse.md b/twil-api/docs/ListQueueResponse.md new file mode 100644 index 0000000..612bb0c --- /dev/null +++ b/twil-api/docs/ListQueueResponse.md @@ -0,0 +1,19 @@ +# ListQueueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queues** | Option<[**Vec**](api.v2010.account.queue.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListRecordingAddOnResultPayloadResponse.md b/twil-api/docs/ListRecordingAddOnResultPayloadResponse.md new file mode 100644 index 0000000..0f19b67 --- /dev/null +++ b/twil-api/docs/ListRecordingAddOnResultPayloadResponse.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResultPayloadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payloads** | Option<[**Vec**](api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListRecordingAddOnResultResponse.md b/twil-api/docs/ListRecordingAddOnResultResponse.md new file mode 100644 index 0000000..1c4697d --- /dev/null +++ b/twil-api/docs/ListRecordingAddOnResultResponse.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add_on_results** | Option<[**Vec**](api.v2010.account.recording.recording_add_on_result.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListRecordingResponse.md b/twil-api/docs/ListRecordingResponse.md new file mode 100644 index 0000000..c15205e --- /dev/null +++ b/twil-api/docs/ListRecordingResponse.md @@ -0,0 +1,19 @@ +# ListRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListRecordingTranscriptionResponse.md b/twil-api/docs/ListRecordingTranscriptionResponse.md new file mode 100644 index 0000000..34aa9e2 --- /dev/null +++ b/twil-api/docs/ListRecordingTranscriptionResponse.md @@ -0,0 +1,19 @@ +# ListRecordingTranscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transcriptions** | Option<[**Vec**](api.v2010.account.recording.recording_transcription.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListShortCodeResponse.md b/twil-api/docs/ListShortCodeResponse.md new file mode 100644 index 0000000..48609f7 --- /dev/null +++ b/twil-api/docs/ListShortCodeResponse.md @@ -0,0 +1,19 @@ +# ListShortCodeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**short_codes** | Option<[**Vec**](api.v2010.account.short_code.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSigningKeyResponse.md b/twil-api/docs/ListSigningKeyResponse.md new file mode 100644 index 0000000..10298f7 --- /dev/null +++ b/twil-api/docs/ListSigningKeyResponse.md @@ -0,0 +1,19 @@ +# ListSigningKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signing_keys** | Option<[**Vec**](api.v2010.account.signing_key.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipAuthCallsCredentialListMappingResponse.md b/twil-api/docs/ListSipAuthCallsCredentialListMappingResponse.md new file mode 100644 index 0000000..c27e60a --- /dev/null +++ b/twil-api/docs/ListSipAuthCallsCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md b/twil-api/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md new file mode 100644 index 0000000..35256a7 --- /dev/null +++ b/twil-api/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsIpAccessControlListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md b/twil-api/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md new file mode 100644 index 0000000..ed43c92 --- /dev/null +++ b/twil-api/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthRegistrationsCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipCredentialListMappingResponse.md b/twil-api/docs/ListSipCredentialListMappingResponse.md new file mode 100644 index 0000000..4f97d0e --- /dev/null +++ b/twil-api/docs/ListSipCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential_list_mappings** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipCredentialListResponse.md b/twil-api/docs/ListSipCredentialListResponse.md new file mode 100644 index 0000000..717bbf6 --- /dev/null +++ b/twil-api/docs/ListSipCredentialListResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential_lists** | Option<[**Vec**](api.v2010.account.sip.sip_credential_list.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipCredentialResponse.md b/twil-api/docs/ListSipCredentialResponse.md new file mode 100644 index 0000000..944dd07 --- /dev/null +++ b/twil-api/docs/ListSipCredentialResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | Option<[**Vec**](api.v2010.account.sip.sip_credential_list.sip_credential.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipDomainResponse.md b/twil-api/docs/ListSipDomainResponse.md new file mode 100644 index 0000000..819155c --- /dev/null +++ b/twil-api/docs/ListSipDomainResponse.md @@ -0,0 +1,19 @@ +# ListSipDomainResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | Option<[**Vec**](api.v2010.account.sip.sip_domain.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipIpAccessControlListMappingResponse.md b/twil-api/docs/ListSipIpAccessControlListMappingResponse.md new file mode 100644 index 0000000..bc53a07 --- /dev/null +++ b/twil-api/docs/ListSipIpAccessControlListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_access_control_list_mappings** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipIpAccessControlListResponse.md b/twil-api/docs/ListSipIpAccessControlListResponse.md new file mode 100644 index 0000000..821dae0 --- /dev/null +++ b/twil-api/docs/ListSipIpAccessControlListResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_access_control_lists** | Option<[**Vec**](api.v2010.account.sip.sip_ip_access_control_list.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListSipIpAddressResponse.md b/twil-api/docs/ListSipIpAddressResponse.md new file mode 100644 index 0000000..5069e48 --- /dev/null +++ b/twil-api/docs/ListSipIpAddressResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAddressResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_addresses** | Option<[**Vec**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListTranscriptionResponse.md b/twil-api/docs/ListTranscriptionResponse.md new file mode 100644 index 0000000..f743245 --- /dev/null +++ b/twil-api/docs/ListTranscriptionResponse.md @@ -0,0 +1,19 @@ +# ListTranscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transcriptions** | Option<[**Vec**](api.v2010.account.transcription.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordAllTimeResponse.md b/twil-api/docs/ListUsageRecordAllTimeResponse.md new file mode 100644 index 0000000..6717a94 --- /dev/null +++ b/twil-api/docs/ListUsageRecordAllTimeResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordAllTimeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_all_time.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordDailyResponse.md b/twil-api/docs/ListUsageRecordDailyResponse.md new file mode 100644 index 0000000..2f4a918 --- /dev/null +++ b/twil-api/docs/ListUsageRecordDailyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordDailyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_daily.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordLastMonthResponse.md b/twil-api/docs/ListUsageRecordLastMonthResponse.md new file mode 100644 index 0000000..0af3d46 --- /dev/null +++ b/twil-api/docs/ListUsageRecordLastMonthResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordLastMonthResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_last_month.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordMonthlyResponse.md b/twil-api/docs/ListUsageRecordMonthlyResponse.md new file mode 100644 index 0000000..8a0c2f8 --- /dev/null +++ b/twil-api/docs/ListUsageRecordMonthlyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordMonthlyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_monthly.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordResponse.md b/twil-api/docs/ListUsageRecordResponse.md new file mode 100644 index 0000000..38294cf --- /dev/null +++ b/twil-api/docs/ListUsageRecordResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordThisMonthResponse.md b/twil-api/docs/ListUsageRecordThisMonthResponse.md new file mode 100644 index 0000000..cbda89b --- /dev/null +++ b/twil-api/docs/ListUsageRecordThisMonthResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordThisMonthResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_this_month.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordTodayResponse.md b/twil-api/docs/ListUsageRecordTodayResponse.md new file mode 100644 index 0000000..1f028e9 --- /dev/null +++ b/twil-api/docs/ListUsageRecordTodayResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordTodayResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_today.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordYearlyResponse.md b/twil-api/docs/ListUsageRecordYearlyResponse.md new file mode 100644 index 0000000..9f863e8 --- /dev/null +++ b/twil-api/docs/ListUsageRecordYearlyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordYearlyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_yearly.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageRecordYesterdayResponse.md b/twil-api/docs/ListUsageRecordYesterdayResponse.md new file mode 100644 index 0000000..6c6a956 --- /dev/null +++ b/twil-api/docs/ListUsageRecordYesterdayResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordYesterdayResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_yesterday.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ListUsageTriggerResponse.md b/twil-api/docs/ListUsageTriggerResponse.md new file mode 100644 index 0000000..ea671ab --- /dev/null +++ b/twil-api/docs/ListUsageTriggerResponse.md @@ -0,0 +1,19 @@ +# ListUsageTriggerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_triggers** | Option<[**Vec**](api.v2010.account.usage.usage_trigger.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/MessageEnumDirection.md b/twil-api/docs/MessageEnumDirection.md new file mode 100644 index 0000000..9fd1775 --- /dev/null +++ b/twil-api/docs/MessageEnumDirection.md @@ -0,0 +1,10 @@ +# MessageEnumDirection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/MessageEnumStatus.md b/twil-api/docs/MessageEnumStatus.md new file mode 100644 index 0000000..69d594c --- /dev/null +++ b/twil-api/docs/MessageEnumStatus.md @@ -0,0 +1,10 @@ +# MessageEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/MessageEnumTrafficType.md b/twil-api/docs/MessageEnumTrafficType.md new file mode 100644 index 0000000..616173a --- /dev/null +++ b/twil-api/docs/MessageEnumTrafficType.md @@ -0,0 +1,10 @@ +# MessageEnumTrafficType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/MessageFeedbackEnumOutcome.md b/twil-api/docs/MessageFeedbackEnumOutcome.md new file mode 100644 index 0000000..ee56252 --- /dev/null +++ b/twil-api/docs/MessageFeedbackEnumOutcome.md @@ -0,0 +1,10 @@ +# MessageFeedbackEnumOutcome + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/ParticipantEnumStatus.md b/twil-api/docs/ParticipantEnumStatus.md new file mode 100644 index 0000000..25aa2eb --- /dev/null +++ b/twil-api/docs/ParticipantEnumStatus.md @@ -0,0 +1,10 @@ +# ParticipantEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/RecordingAddOnResultEnumStatus.md b/twil-api/docs/RecordingAddOnResultEnumStatus.md new file mode 100644 index 0000000..c615b3d --- /dev/null +++ b/twil-api/docs/RecordingAddOnResultEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingAddOnResultEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/RecordingEnumSource.md b/twil-api/docs/RecordingEnumSource.md new file mode 100644 index 0000000..c73a02b --- /dev/null +++ b/twil-api/docs/RecordingEnumSource.md @@ -0,0 +1,10 @@ +# RecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/RecordingEnumStatus.md b/twil-api/docs/RecordingEnumStatus.md new file mode 100644 index 0000000..0c67e26 --- /dev/null +++ b/twil-api/docs/RecordingEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/RecordingTranscriptionEnumStatus.md b/twil-api/docs/RecordingTranscriptionEnumStatus.md new file mode 100644 index 0000000..e4c13c0 --- /dev/null +++ b/twil-api/docs/RecordingTranscriptionEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingTranscriptionEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/SiprecEnumStatus.md b/twil-api/docs/SiprecEnumStatus.md new file mode 100644 index 0000000..bd04f70 --- /dev/null +++ b/twil-api/docs/SiprecEnumStatus.md @@ -0,0 +1,10 @@ +# SiprecEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/StreamEnumStatus.md b/twil-api/docs/StreamEnumStatus.md new file mode 100644 index 0000000..dbd9525 --- /dev/null +++ b/twil-api/docs/StreamEnumStatus.md @@ -0,0 +1,10 @@ +# StreamEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/TranscriptionEnumStatus.md b/twil-api/docs/TranscriptionEnumStatus.md new file mode 100644 index 0000000..3086de5 --- /dev/null +++ b/twil-api/docs/TranscriptionEnumStatus.md @@ -0,0 +1,10 @@ +# TranscriptionEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordAllTimeEnumCategory.md b/twil-api/docs/UsageRecordAllTimeEnumCategory.md new file mode 100644 index 0000000..6a3619c --- /dev/null +++ b/twil-api/docs/UsageRecordAllTimeEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordAllTimeEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordDailyEnumCategory.md b/twil-api/docs/UsageRecordDailyEnumCategory.md new file mode 100644 index 0000000..2916b5c --- /dev/null +++ b/twil-api/docs/UsageRecordDailyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordDailyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordEnumCategory.md b/twil-api/docs/UsageRecordEnumCategory.md new file mode 100644 index 0000000..a53e497 --- /dev/null +++ b/twil-api/docs/UsageRecordEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordLastMonthEnumCategory.md b/twil-api/docs/UsageRecordLastMonthEnumCategory.md new file mode 100644 index 0000000..8bdd61a --- /dev/null +++ b/twil-api/docs/UsageRecordLastMonthEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordLastMonthEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordMonthlyEnumCategory.md b/twil-api/docs/UsageRecordMonthlyEnumCategory.md new file mode 100644 index 0000000..15a986a --- /dev/null +++ b/twil-api/docs/UsageRecordMonthlyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordMonthlyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordThisMonthEnumCategory.md b/twil-api/docs/UsageRecordThisMonthEnumCategory.md new file mode 100644 index 0000000..65618b5 --- /dev/null +++ b/twil-api/docs/UsageRecordThisMonthEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordThisMonthEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordTodayEnumCategory.md b/twil-api/docs/UsageRecordTodayEnumCategory.md new file mode 100644 index 0000000..84c0c16 --- /dev/null +++ b/twil-api/docs/UsageRecordTodayEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordTodayEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordYearlyEnumCategory.md b/twil-api/docs/UsageRecordYearlyEnumCategory.md new file mode 100644 index 0000000..e8ac83a --- /dev/null +++ b/twil-api/docs/UsageRecordYearlyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordYearlyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageRecordYesterdayEnumCategory.md b/twil-api/docs/UsageRecordYesterdayEnumCategory.md new file mode 100644 index 0000000..4a10d1e --- /dev/null +++ b/twil-api/docs/UsageRecordYesterdayEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordYesterdayEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageTriggerEnumRecurring.md b/twil-api/docs/UsageTriggerEnumRecurring.md new file mode 100644 index 0000000..3dd8212 --- /dev/null +++ b/twil-api/docs/UsageTriggerEnumRecurring.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumRecurring + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageTriggerEnumTriggerField.md b/twil-api/docs/UsageTriggerEnumTriggerField.md new file mode 100644 index 0000000..2fb7762 --- /dev/null +++ b/twil-api/docs/UsageTriggerEnumTriggerField.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumTriggerField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/docs/UsageTriggerEnumUsageCategory.md b/twil-api/docs/UsageTriggerEnumUsageCategory.md new file mode 100644 index 0000000..5dac124 --- /dev/null +++ b/twil-api/docs/UsageTriggerEnumUsageCategory.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumUsageCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-api/git_push.sh b/twil-api/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/twil-api/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/twil-api/src/apis/configuration.rs b/twil-api/src/apis/configuration.rs new file mode 100644 index 0000000..a8cd5c9 --- /dev/null +++ b/twil-api/src/apis/configuration.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, + // TODO: take an oauth2 token source, similar to the go one +} + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + Configuration { + base_path: "https://api.twilio.com".to_owned(), + user_agent: Some("OpenAPI-Generator/1.46.0/rust".to_owned()), + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + + } + } +} diff --git a/twil-api/src/apis/default_api.rs b/twil-api/src/apis/default_api.rs new file mode 100644 index 0000000..5ce49fc --- /dev/null +++ b/twil-api/src/apis/default_api.rs @@ -0,0 +1,11394 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`create_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_incoming_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_incoming_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_incoming_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_message_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageFeedbackError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_new_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateNewKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_new_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateNewSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_payments`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreatePaymentsError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_siprec`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSiprecError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_stream`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateStreamError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateTokenError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_user_defined_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUserDefinedMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_user_defined_message_subscription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUserDefinedMessageSubscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_validation_request`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateValidationRequestError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMediaError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_user_defined_message_subscription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUserDefinedMessageSubscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_authorized_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAuthorizedConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_available_phone_number_country`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAvailablePhoneNumberCountryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_balance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchBalanceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallFeedbackError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConferenceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_incoming_phone_number_assigned_add_on_extension`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberAssignedAddOnExtensionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMediaError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMemberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchShortCodeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_authorized_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAuthorizedConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_country`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberCountryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_machine_to_machine`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberMachineToMachineError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_national`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberNationalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_shared_cost`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberSharedCostError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_voip`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberVoipError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallEventError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConferenceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_dependent_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListDependentPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_assigned_add_on_extension`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberAssignedAddOnExtensionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMediaError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMemberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListShortCodeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_all_time`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordAllTimeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_daily`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordDailyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_last_month`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordLastMonthError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_monthly`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordMonthlyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_this_month`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordThisMonthError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_today`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordTodayError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_yearly`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordYearlyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_record_yesterday`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordYesterdayError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallFeedbackError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConferenceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMemberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_payments`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdatePaymentsError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateShortCodeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_siprec`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSiprecError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_stream`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateStreamError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateUsageTriggerError { + UnknownValue(serde_json::Value), +} + + +/// Create a new Twilio Subaccount from the account making the request +pub async fn create_account(configuration: &configuration::Configuration, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_address(configuration: &configuration::Configuration, account_sid: &str, customer_name: &str, street: &str, city: &str, region: &str, postal_code: &str, iso_country: &str, friendly_name: Option<&str>, emergency_enabled: Option, auto_correct_address: Option, street_secondary: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CustomerName", customer_name.to_string()); + local_var_form_params.insert("Street", street.to_string()); + local_var_form_params.insert("City", city.to_string()); + local_var_form_params.insert("Region", region.to_string()); + local_var_form_params.insert("PostalCode", postal_code.to_string()); + local_var_form_params.insert("IsoCountry", iso_country.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_enabled { + local_var_form_params.insert("EmergencyEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = auto_correct_address { + local_var_form_params.insert("AutoCorrectAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street_secondary { + local_var_form_params.insert("StreetSecondary", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new application within your account +pub async fn create_application(configuration: &configuration::Configuration, account_sid: &str, api_version: Option<&str>, voice_url: Option<&str>, voice_method: Option<&str>, voice_fallback_url: Option<&str>, voice_fallback_method: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_caller_id_lookup: Option, sms_url: Option<&str>, sms_method: Option<&str>, sms_fallback_url: Option<&str>, sms_fallback_method: Option<&str>, sms_status_callback: Option<&str>, message_status_callback: Option<&str>, friendly_name: Option<&str>, public_application_connect_enabled: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_status_callback { + local_var_form_params.insert("SmsStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = message_status_callback { + local_var_form_params.insert("MessageStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = public_application_connect_enabled { + local_var_form_params.insert("PublicApplicationConnectEnabled", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections +pub async fn create_call(configuration: &configuration::Configuration, account_sid: &str, to: &str, from: &str, method: Option<&str>, fallback_url: Option<&str>, fallback_method: Option<&str>, status_callback: Option<&str>, status_callback_event: Option>, status_callback_method: Option<&str>, send_digits: Option<&str>, timeout: Option, record: Option, recording_channels: Option<&str>, recording_status_callback: Option<&str>, recording_status_callback_method: Option<&str>, sip_auth_username: Option<&str>, sip_auth_password: Option<&str>, machine_detection: Option<&str>, machine_detection_timeout: Option, recording_status_callback_event: Option>, trim: Option<&str>, caller_id: Option<&str>, machine_detection_speech_threshold: Option, machine_detection_speech_end_threshold: Option, machine_detection_silence_timeout: Option, async_amd: Option<&str>, async_amd_status_callback: Option<&str>, async_amd_status_callback_method: Option<&str>, byoc: Option<&str>, call_reason: Option<&str>, call_token: Option<&str>, recording_track: Option<&str>, time_limit: Option, url: Option<&str>, twiml: Option<&str>, application_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("To", to.to_string()); + local_var_form_params.insert("From", from.to_string()); + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_url { + local_var_form_params.insert("FallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_method { + local_var_form_params.insert("FallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_event { + local_var_form_params.insert("StatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_digits { + local_var_form_params.insert("SendDigits", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = record { + local_var_form_params.insert("Record", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_username { + local_var_form_params.insert("SipAuthUsername", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_password { + local_var_form_params.insert("SipAuthPassword", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection { + local_var_form_params.insert("MachineDetection", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_timeout { + local_var_form_params.insert("MachineDetectionTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = caller_id { + local_var_form_params.insert("CallerId", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_threshold { + local_var_form_params.insert("MachineDetectionSpeechThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_end_threshold { + local_var_form_params.insert("MachineDetectionSpeechEndThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_silence_timeout { + local_var_form_params.insert("MachineDetectionSilenceTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd { + local_var_form_params.insert("AsyncAmd", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd_status_callback { + local_var_form_params.insert("AsyncAmdStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd_status_callback_method { + local_var_form_params.insert("AsyncAmdStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc { + local_var_form_params.insert("Byoc", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_reason { + local_var_form_params.insert("CallReason", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_token { + local_var_form_params.insert("CallToken", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = url { + local_var_form_params.insert("Url", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = twiml { + local_var_form_params.insert("Twiml", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = application_sid { + local_var_form_params.insert("ApplicationSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a FeedbackSummary resource for a call +pub async fn create_call_feedback_summary(configuration: &configuration::Configuration, account_sid: &str, start_date: String, end_date: String, include_subaccounts: Option, status_callback: Option<&str>, status_callback_method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("StartDate", start_date.to_string()); + local_var_form_params.insert("EndDate", end_date.to_string()); + if let Some(local_var_param_value) = include_subaccounts { + local_var_form_params.insert("IncludeSubaccounts", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a recording for the call +pub async fn create_call_recording(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, recording_status_callback_event: Option>, recording_status_callback: Option<&str>, recording_status_callback_method: Option<&str>, trim: Option<&str>, recording_channels: Option<&str>, recording_track: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Purchase a phone-number for the account. +pub async fn create_incoming_phone_number(configuration: &configuration::Configuration, account_sid: &str, api_version: Option<&str>, friendly_name: Option<&str>, sms_application_sid: Option<&str>, sms_fallback_method: Option<&str>, sms_fallback_url: Option<&str>, sms_method: Option<&str>, sms_url: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_application_sid: Option<&str>, voice_caller_id_lookup: Option, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_url: Option<&str>, emergency_status: Option<&str>, emergency_address_sid: Option<&str>, trunk_sid: Option<&str>, identity_sid: Option<&str>, address_sid: Option<&str>, voice_receive_mode: Option<&str>, bundle_sid: Option<&str>, phone_number: Option<&str>, area_code: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = phone_number { + local_var_form_params.insert("PhoneNumber", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = area_code { + local_var_form_params.insert("AreaCode", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Assign an Add-on installation to the Number specified. +pub async fn create_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, installed_add_on_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("InstalledAddOnSid", installed_add_on_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_incoming_phone_number_local(configuration: &configuration::Configuration, account_sid: &str, phone_number: &str, api_version: Option<&str>, friendly_name: Option<&str>, sms_application_sid: Option<&str>, sms_fallback_method: Option<&str>, sms_fallback_url: Option<&str>, sms_method: Option<&str>, sms_url: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_application_sid: Option<&str>, voice_caller_id_lookup: Option, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_url: Option<&str>, identity_sid: Option<&str>, address_sid: Option<&str>, emergency_status: Option<&str>, emergency_address_sid: Option<&str>, trunk_sid: Option<&str>, voice_receive_mode: Option<&str>, bundle_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_incoming_phone_number_mobile(configuration: &configuration::Configuration, account_sid: &str, phone_number: &str, api_version: Option<&str>, friendly_name: Option<&str>, sms_application_sid: Option<&str>, sms_fallback_method: Option<&str>, sms_fallback_url: Option<&str>, sms_method: Option<&str>, sms_url: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_application_sid: Option<&str>, voice_caller_id_lookup: Option, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_url: Option<&str>, identity_sid: Option<&str>, address_sid: Option<&str>, emergency_status: Option<&str>, emergency_address_sid: Option<&str>, trunk_sid: Option<&str>, voice_receive_mode: Option<&str>, bundle_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_incoming_phone_number_toll_free(configuration: &configuration::Configuration, account_sid: &str, phone_number: &str, api_version: Option<&str>, friendly_name: Option<&str>, sms_application_sid: Option<&str>, sms_fallback_method: Option<&str>, sms_fallback_url: Option<&str>, sms_method: Option<&str>, sms_url: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_application_sid: Option<&str>, voice_caller_id_lookup: Option, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_url: Option<&str>, identity_sid: Option<&str>, address_sid: Option<&str>, emergency_status: Option<&str>, emergency_address_sid: Option<&str>, trunk_sid: Option<&str>, voice_receive_mode: Option<&str>, bundle_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Send a message from the account used to make the request +pub async fn create_message(configuration: &configuration::Configuration, account_sid: &str, to: &str, status_callback: Option<&str>, application_sid: Option<&str>, max_price: Option, provide_feedback: Option, attempt: Option, validity_period: Option, force_delivery: Option, content_retention: Option<&str>, address_retention: Option<&str>, smart_encoded: Option, persistent_action: Option>, shorten_urls: Option, schedule_type: Option<&str>, send_at: Option, send_as_mms: Option, content_variables: Option<&str>, from: Option<&str>, messaging_service_sid: Option<&str>, body: Option<&str>, media_url: Option>, content_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("To", to.to_string()); + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = application_sid { + local_var_form_params.insert("ApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_price { + local_var_form_params.insert("MaxPrice", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = provide_feedback { + local_var_form_params.insert("ProvideFeedback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = attempt { + local_var_form_params.insert("Attempt", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = validity_period { + local_var_form_params.insert("ValidityPeriod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = force_delivery { + local_var_form_params.insert("ForceDelivery", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = content_retention { + local_var_form_params.insert("ContentRetention", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_retention { + local_var_form_params.insert("AddressRetention", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = smart_encoded { + local_var_form_params.insert("SmartEncoded", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = persistent_action { + local_var_form_params.insert("PersistentAction", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = shorten_urls { + local_var_form_params.insert("ShortenUrls", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = schedule_type { + local_var_form_params.insert("ScheduleType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_at { + local_var_form_params.insert("SendAt", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_as_mms { + local_var_form_params.insert("SendAsMms", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = content_variables { + local_var_form_params.insert("ContentVariables", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = from { + local_var_form_params.insert("From", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = messaging_service_sid { + local_var_form_params.insert("MessagingServiceSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = body { + local_var_form_params.insert("Body", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = media_url { + local_var_form_params.insert("MediaUrl", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = content_sid { + local_var_form_params.insert("ContentSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_message_feedback(configuration: &configuration::Configuration, account_sid: &str, message_sid: &str, outcome: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = outcome { + local_var_form_params.insert("Outcome", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_new_key(configuration: &configuration::Configuration, account_sid: &str, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new Signing Key for the account making the request. +pub async fn create_new_signing_key(configuration: &configuration::Configuration, account_sid: &str, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_participant(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, from: &str, to: &str, status_callback: Option<&str>, status_callback_method: Option<&str>, status_callback_event: Option>, label: Option<&str>, timeout: Option, record: Option, muted: Option, beep: Option<&str>, start_conference_on_enter: Option, end_conference_on_exit: Option, wait_url: Option<&str>, wait_method: Option<&str>, early_media: Option, max_participants: Option, conference_record: Option<&str>, conference_trim: Option<&str>, conference_status_callback: Option<&str>, conference_status_callback_method: Option<&str>, conference_status_callback_event: Option>, recording_channels: Option<&str>, recording_status_callback: Option<&str>, recording_status_callback_method: Option<&str>, sip_auth_username: Option<&str>, sip_auth_password: Option<&str>, region: Option<&str>, conference_recording_status_callback: Option<&str>, conference_recording_status_callback_method: Option<&str>, recording_status_callback_event: Option>, conference_recording_status_callback_event: Option>, coaching: Option, call_sid_to_coach: Option<&str>, jitter_buffer_size: Option<&str>, byoc: Option<&str>, caller_id: Option<&str>, call_reason: Option<&str>, recording_track: Option<&str>, time_limit: Option, machine_detection: Option<&str>, machine_detection_timeout: Option, machine_detection_speech_threshold: Option, machine_detection_speech_end_threshold: Option, machine_detection_silence_timeout: Option, amd_status_callback: Option<&str>, amd_status_callback_method: Option<&str>, trim: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("From", from.to_string()); + local_var_form_params.insert("To", to.to_string()); + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_event { + local_var_form_params.insert("StatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = label { + local_var_form_params.insert("Label", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = record { + local_var_form_params.insert("Record", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = muted { + local_var_form_params.insert("Muted", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = beep { + local_var_form_params.insert("Beep", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = start_conference_on_enter { + local_var_form_params.insert("StartConferenceOnEnter", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = end_conference_on_exit { + local_var_form_params.insert("EndConferenceOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_url { + local_var_form_params.insert("WaitUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_method { + local_var_form_params.insert("WaitMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = early_media { + local_var_form_params.insert("EarlyMedia", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_participants { + local_var_form_params.insert("MaxParticipants", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_record { + local_var_form_params.insert("ConferenceRecord", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_trim { + local_var_form_params.insert("ConferenceTrim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback { + local_var_form_params.insert("ConferenceStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback_method { + local_var_form_params.insert("ConferenceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback_event { + local_var_form_params.insert("ConferenceStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_username { + local_var_form_params.insert("SipAuthUsername", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_password { + local_var_form_params.insert("SipAuthPassword", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = region { + local_var_form_params.insert("Region", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback { + local_var_form_params.insert("ConferenceRecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback_method { + local_var_form_params.insert("ConferenceRecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback_event { + local_var_form_params.insert("ConferenceRecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = coaching { + local_var_form_params.insert("Coaching", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_sid_to_coach { + local_var_form_params.insert("CallSidToCoach", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = jitter_buffer_size { + local_var_form_params.insert("JitterBufferSize", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc { + local_var_form_params.insert("Byoc", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = caller_id { + local_var_form_params.insert("CallerId", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_reason { + local_var_form_params.insert("CallReason", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection { + local_var_form_params.insert("MachineDetection", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_timeout { + local_var_form_params.insert("MachineDetectionTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_threshold { + local_var_form_params.insert("MachineDetectionSpeechThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_end_threshold { + local_var_form_params.insert("MachineDetectionSpeechEndThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_silence_timeout { + local_var_form_params.insert("MachineDetectionSilenceTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = amd_status_callback { + local_var_form_params.insert("AmdStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = amd_status_callback_method { + local_var_form_params.insert("AmdStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// create an instance of payments. This will start a new payments session +pub async fn create_payments(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, idempotency_key: &str, status_callback: &str, bank_account_type: Option<&str>, charge_amount: Option, currency: Option<&str>, description: Option<&str>, input: Option<&str>, min_postal_code_length: Option, parameter: Option, payment_connector: Option<&str>, payment_method: Option<&str>, postal_code: Option, security_code: Option, timeout: Option, token_type: Option<&str>, valid_card_types: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IdempotencyKey", idempotency_key.to_string()); + local_var_form_params.insert("StatusCallback", status_callback.to_string()); + if let Some(local_var_param_value) = bank_account_type { + local_var_form_params.insert("BankAccountType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = charge_amount { + local_var_form_params.insert("ChargeAmount", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = currency { + local_var_form_params.insert("Currency", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = description { + local_var_form_params.insert("Description", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = input { + local_var_form_params.insert("Input", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = min_postal_code_length { + local_var_form_params.insert("MinPostalCodeLength", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter { + local_var_form_params.insert("Parameter", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = payment_connector { + local_var_form_params.insert("PaymentConnector", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = payment_method { + local_var_form_params.insert("PaymentMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = postal_code { + local_var_form_params.insert("PostalCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = security_code { + local_var_form_params.insert("SecurityCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = token_type { + local_var_form_params.insert("TokenType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = valid_card_types { + local_var_form_params.insert("ValidCardTypes", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a queue +pub async fn create_queue(configuration: &configuration::Configuration, account_sid: &str, friendly_name: &str, max_size: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + if let Some(local_var_param_value) = max_size { + local_var_form_params.insert("MaxSize", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new credential list mapping resource +pub async fn create_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, credential_list_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new IP Access Control List mapping +pub async fn create_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, ip_access_control_list_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IpAccessControlListSid", ip_access_control_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new credential list mapping resource +pub async fn create_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, credential_list_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new credential resource. +pub async fn create_sip_credential(configuration: &configuration::Configuration, account_sid: &str, credential_list_sid: &str, username: &str, password: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Username", username.to_string()); + local_var_form_params.insert("Password", password.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a Credential List +pub async fn create_sip_credential_list(configuration: &configuration::Configuration, account_sid: &str, friendly_name: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a CredentialListMapping resource for an account. +pub async fn create_sip_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, credential_list_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new Domain +pub async fn create_sip_domain(configuration: &configuration::Configuration, account_sid: &str, domain_name: &str, friendly_name: Option<&str>, voice_url: Option<&str>, voice_method: Option<&str>, voice_fallback_url: Option<&str>, voice_fallback_method: Option<&str>, voice_status_callback_url: Option<&str>, voice_status_callback_method: Option<&str>, sip_registration: Option, emergency_calling_enabled: Option, secure: Option, byoc_trunk_sid: Option<&str>, emergency_caller_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("DomainName", domain_name.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_url { + local_var_form_params.insert("VoiceStatusCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_method { + local_var_form_params.insert("VoiceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_registration { + local_var_form_params.insert("SipRegistration", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_calling_enabled { + local_var_form_params.insert("EmergencyCallingEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = secure { + local_var_form_params.insert("Secure", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc_trunk_sid { + local_var_form_params.insert("ByocTrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_caller_sid { + local_var_form_params.insert("EmergencyCallerSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new IpAccessControlList resource +pub async fn create_sip_ip_access_control_list(configuration: &configuration::Configuration, account_sid: &str, friendly_name: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new IpAccessControlListMapping resource. +pub async fn create_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, ip_access_control_list_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IpAccessControlListSid", ip_access_control_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new IpAddress resource. +pub async fn create_sip_ip_address(configuration: &configuration::Configuration, account_sid: &str, ip_access_control_list_sid: &str, friendly_name: &str, ip_address: &str, cidr_prefix_length: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_form_params.insert("IpAddress", ip_address.to_string()); + if let Some(local_var_param_value) = cidr_prefix_length { + local_var_form_params.insert("CidrPrefixLength", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a Siprec +pub async fn create_siprec(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, name: Option<&str>, connector_name: Option<&str>, track: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, parameter1_period_name: Option<&str>, parameter1_period_value: Option<&str>, parameter2_period_name: Option<&str>, parameter2_period_value: Option<&str>, parameter3_period_name: Option<&str>, parameter3_period_value: Option<&str>, parameter4_period_name: Option<&str>, parameter4_period_value: Option<&str>, parameter5_period_name: Option<&str>, parameter5_period_value: Option<&str>, parameter6_period_name: Option<&str>, parameter6_period_value: Option<&str>, parameter7_period_name: Option<&str>, parameter7_period_value: Option<&str>, parameter8_period_name: Option<&str>, parameter8_period_value: Option<&str>, parameter9_period_name: Option<&str>, parameter9_period_value: Option<&str>, parameter10_period_name: Option<&str>, parameter10_period_value: Option<&str>, parameter11_period_name: Option<&str>, parameter11_period_value: Option<&str>, parameter12_period_name: Option<&str>, parameter12_period_value: Option<&str>, parameter13_period_name: Option<&str>, parameter13_period_value: Option<&str>, parameter14_period_name: Option<&str>, parameter14_period_value: Option<&str>, parameter15_period_name: Option<&str>, parameter15_period_value: Option<&str>, parameter16_period_name: Option<&str>, parameter16_period_value: Option<&str>, parameter17_period_name: Option<&str>, parameter17_period_value: Option<&str>, parameter18_period_name: Option<&str>, parameter18_period_value: Option<&str>, parameter19_period_name: Option<&str>, parameter19_period_value: Option<&str>, parameter20_period_name: Option<&str>, parameter20_period_value: Option<&str>, parameter21_period_name: Option<&str>, parameter21_period_value: Option<&str>, parameter22_period_name: Option<&str>, parameter22_period_value: Option<&str>, parameter23_period_name: Option<&str>, parameter23_period_value: Option<&str>, parameter24_period_name: Option<&str>, parameter24_period_value: Option<&str>, parameter25_period_name: Option<&str>, parameter25_period_value: Option<&str>, parameter26_period_name: Option<&str>, parameter26_period_value: Option<&str>, parameter27_period_name: Option<&str>, parameter27_period_value: Option<&str>, parameter28_period_name: Option<&str>, parameter28_period_value: Option<&str>, parameter29_period_name: Option<&str>, parameter29_period_value: Option<&str>, parameter30_period_name: Option<&str>, parameter30_period_value: Option<&str>, parameter31_period_name: Option<&str>, parameter31_period_value: Option<&str>, parameter32_period_name: Option<&str>, parameter32_period_value: Option<&str>, parameter33_period_name: Option<&str>, parameter33_period_value: Option<&str>, parameter34_period_name: Option<&str>, parameter34_period_value: Option<&str>, parameter35_period_name: Option<&str>, parameter35_period_value: Option<&str>, parameter36_period_name: Option<&str>, parameter36_period_value: Option<&str>, parameter37_period_name: Option<&str>, parameter37_period_value: Option<&str>, parameter38_period_name: Option<&str>, parameter38_period_value: Option<&str>, parameter39_period_name: Option<&str>, parameter39_period_value: Option<&str>, parameter40_period_name: Option<&str>, parameter40_period_value: Option<&str>, parameter41_period_name: Option<&str>, parameter41_period_value: Option<&str>, parameter42_period_name: Option<&str>, parameter42_period_value: Option<&str>, parameter43_period_name: Option<&str>, parameter43_period_value: Option<&str>, parameter44_period_name: Option<&str>, parameter44_period_value: Option<&str>, parameter45_period_name: Option<&str>, parameter45_period_value: Option<&str>, parameter46_period_name: Option<&str>, parameter46_period_value: Option<&str>, parameter47_period_name: Option<&str>, parameter47_period_value: Option<&str>, parameter48_period_name: Option<&str>, parameter48_period_value: Option<&str>, parameter49_period_name: Option<&str>, parameter49_period_value: Option<&str>, parameter50_period_name: Option<&str>, parameter50_period_value: Option<&str>, parameter51_period_name: Option<&str>, parameter51_period_value: Option<&str>, parameter52_period_name: Option<&str>, parameter52_period_value: Option<&str>, parameter53_period_name: Option<&str>, parameter53_period_value: Option<&str>, parameter54_period_name: Option<&str>, parameter54_period_value: Option<&str>, parameter55_period_name: Option<&str>, parameter55_period_value: Option<&str>, parameter56_period_name: Option<&str>, parameter56_period_value: Option<&str>, parameter57_period_name: Option<&str>, parameter57_period_value: Option<&str>, parameter58_period_name: Option<&str>, parameter58_period_value: Option<&str>, parameter59_period_name: Option<&str>, parameter59_period_value: Option<&str>, parameter60_period_name: Option<&str>, parameter60_period_value: Option<&str>, parameter61_period_name: Option<&str>, parameter61_period_value: Option<&str>, parameter62_period_name: Option<&str>, parameter62_period_value: Option<&str>, parameter63_period_name: Option<&str>, parameter63_period_value: Option<&str>, parameter64_period_name: Option<&str>, parameter64_period_value: Option<&str>, parameter65_period_name: Option<&str>, parameter65_period_value: Option<&str>, parameter66_period_name: Option<&str>, parameter66_period_value: Option<&str>, parameter67_period_name: Option<&str>, parameter67_period_value: Option<&str>, parameter68_period_name: Option<&str>, parameter68_period_value: Option<&str>, parameter69_period_name: Option<&str>, parameter69_period_value: Option<&str>, parameter70_period_name: Option<&str>, parameter70_period_value: Option<&str>, parameter71_period_name: Option<&str>, parameter71_period_value: Option<&str>, parameter72_period_name: Option<&str>, parameter72_period_value: Option<&str>, parameter73_period_name: Option<&str>, parameter73_period_value: Option<&str>, parameter74_period_name: Option<&str>, parameter74_period_value: Option<&str>, parameter75_period_name: Option<&str>, parameter75_period_value: Option<&str>, parameter76_period_name: Option<&str>, parameter76_period_value: Option<&str>, parameter77_period_name: Option<&str>, parameter77_period_value: Option<&str>, parameter78_period_name: Option<&str>, parameter78_period_value: Option<&str>, parameter79_period_name: Option<&str>, parameter79_period_value: Option<&str>, parameter80_period_name: Option<&str>, parameter80_period_value: Option<&str>, parameter81_period_name: Option<&str>, parameter81_period_value: Option<&str>, parameter82_period_name: Option<&str>, parameter82_period_value: Option<&str>, parameter83_period_name: Option<&str>, parameter83_period_value: Option<&str>, parameter84_period_name: Option<&str>, parameter84_period_value: Option<&str>, parameter85_period_name: Option<&str>, parameter85_period_value: Option<&str>, parameter86_period_name: Option<&str>, parameter86_period_value: Option<&str>, parameter87_period_name: Option<&str>, parameter87_period_value: Option<&str>, parameter88_period_name: Option<&str>, parameter88_period_value: Option<&str>, parameter89_period_name: Option<&str>, parameter89_period_value: Option<&str>, parameter90_period_name: Option<&str>, parameter90_period_value: Option<&str>, parameter91_period_name: Option<&str>, parameter91_period_value: Option<&str>, parameter92_period_name: Option<&str>, parameter92_period_value: Option<&str>, parameter93_period_name: Option<&str>, parameter93_period_value: Option<&str>, parameter94_period_name: Option<&str>, parameter94_period_value: Option<&str>, parameter95_period_name: Option<&str>, parameter95_period_value: Option<&str>, parameter96_period_name: Option<&str>, parameter96_period_value: Option<&str>, parameter97_period_name: Option<&str>, parameter97_period_value: Option<&str>, parameter98_period_name: Option<&str>, parameter98_period_value: Option<&str>, parameter99_period_name: Option<&str>, parameter99_period_value: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = name { + local_var_form_params.insert("Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = connector_name { + local_var_form_params.insert("ConnectorName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = track { + local_var_form_params.insert("Track", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_name { + local_var_form_params.insert("Parameter1.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_value { + local_var_form_params.insert("Parameter1.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_name { + local_var_form_params.insert("Parameter2.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_value { + local_var_form_params.insert("Parameter2.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_name { + local_var_form_params.insert("Parameter3.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_value { + local_var_form_params.insert("Parameter3.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_name { + local_var_form_params.insert("Parameter4.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_value { + local_var_form_params.insert("Parameter4.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_name { + local_var_form_params.insert("Parameter5.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_value { + local_var_form_params.insert("Parameter5.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_name { + local_var_form_params.insert("Parameter6.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_value { + local_var_form_params.insert("Parameter6.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_name { + local_var_form_params.insert("Parameter7.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_value { + local_var_form_params.insert("Parameter7.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_name { + local_var_form_params.insert("Parameter8.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_value { + local_var_form_params.insert("Parameter8.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_name { + local_var_form_params.insert("Parameter9.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_value { + local_var_form_params.insert("Parameter9.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_name { + local_var_form_params.insert("Parameter10.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_value { + local_var_form_params.insert("Parameter10.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_name { + local_var_form_params.insert("Parameter11.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_value { + local_var_form_params.insert("Parameter11.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_name { + local_var_form_params.insert("Parameter12.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_value { + local_var_form_params.insert("Parameter12.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_name { + local_var_form_params.insert("Parameter13.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_value { + local_var_form_params.insert("Parameter13.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_name { + local_var_form_params.insert("Parameter14.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_value { + local_var_form_params.insert("Parameter14.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_name { + local_var_form_params.insert("Parameter15.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_value { + local_var_form_params.insert("Parameter15.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_name { + local_var_form_params.insert("Parameter16.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_value { + local_var_form_params.insert("Parameter16.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_name { + local_var_form_params.insert("Parameter17.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_value { + local_var_form_params.insert("Parameter17.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_name { + local_var_form_params.insert("Parameter18.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_value { + local_var_form_params.insert("Parameter18.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_name { + local_var_form_params.insert("Parameter19.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_value { + local_var_form_params.insert("Parameter19.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_name { + local_var_form_params.insert("Parameter20.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_value { + local_var_form_params.insert("Parameter20.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_name { + local_var_form_params.insert("Parameter21.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_value { + local_var_form_params.insert("Parameter21.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_name { + local_var_form_params.insert("Parameter22.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_value { + local_var_form_params.insert("Parameter22.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_name { + local_var_form_params.insert("Parameter23.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_value { + local_var_form_params.insert("Parameter23.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_name { + local_var_form_params.insert("Parameter24.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_value { + local_var_form_params.insert("Parameter24.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_name { + local_var_form_params.insert("Parameter25.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_value { + local_var_form_params.insert("Parameter25.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_name { + local_var_form_params.insert("Parameter26.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_value { + local_var_form_params.insert("Parameter26.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_name { + local_var_form_params.insert("Parameter27.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_value { + local_var_form_params.insert("Parameter27.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_name { + local_var_form_params.insert("Parameter28.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_value { + local_var_form_params.insert("Parameter28.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_name { + local_var_form_params.insert("Parameter29.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_value { + local_var_form_params.insert("Parameter29.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_name { + local_var_form_params.insert("Parameter30.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_value { + local_var_form_params.insert("Parameter30.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_name { + local_var_form_params.insert("Parameter31.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_value { + local_var_form_params.insert("Parameter31.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_name { + local_var_form_params.insert("Parameter32.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_value { + local_var_form_params.insert("Parameter32.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_name { + local_var_form_params.insert("Parameter33.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_value { + local_var_form_params.insert("Parameter33.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_name { + local_var_form_params.insert("Parameter34.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_value { + local_var_form_params.insert("Parameter34.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_name { + local_var_form_params.insert("Parameter35.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_value { + local_var_form_params.insert("Parameter35.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_name { + local_var_form_params.insert("Parameter36.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_value { + local_var_form_params.insert("Parameter36.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_name { + local_var_form_params.insert("Parameter37.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_value { + local_var_form_params.insert("Parameter37.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_name { + local_var_form_params.insert("Parameter38.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_value { + local_var_form_params.insert("Parameter38.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_name { + local_var_form_params.insert("Parameter39.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_value { + local_var_form_params.insert("Parameter39.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_name { + local_var_form_params.insert("Parameter40.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_value { + local_var_form_params.insert("Parameter40.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_name { + local_var_form_params.insert("Parameter41.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_value { + local_var_form_params.insert("Parameter41.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_name { + local_var_form_params.insert("Parameter42.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_value { + local_var_form_params.insert("Parameter42.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_name { + local_var_form_params.insert("Parameter43.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_value { + local_var_form_params.insert("Parameter43.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_name { + local_var_form_params.insert("Parameter44.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_value { + local_var_form_params.insert("Parameter44.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_name { + local_var_form_params.insert("Parameter45.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_value { + local_var_form_params.insert("Parameter45.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_name { + local_var_form_params.insert("Parameter46.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_value { + local_var_form_params.insert("Parameter46.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_name { + local_var_form_params.insert("Parameter47.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_value { + local_var_form_params.insert("Parameter47.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_name { + local_var_form_params.insert("Parameter48.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_value { + local_var_form_params.insert("Parameter48.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_name { + local_var_form_params.insert("Parameter49.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_value { + local_var_form_params.insert("Parameter49.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_name { + local_var_form_params.insert("Parameter50.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_value { + local_var_form_params.insert("Parameter50.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_name { + local_var_form_params.insert("Parameter51.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_value { + local_var_form_params.insert("Parameter51.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_name { + local_var_form_params.insert("Parameter52.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_value { + local_var_form_params.insert("Parameter52.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_name { + local_var_form_params.insert("Parameter53.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_value { + local_var_form_params.insert("Parameter53.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_name { + local_var_form_params.insert("Parameter54.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_value { + local_var_form_params.insert("Parameter54.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_name { + local_var_form_params.insert("Parameter55.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_value { + local_var_form_params.insert("Parameter55.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_name { + local_var_form_params.insert("Parameter56.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_value { + local_var_form_params.insert("Parameter56.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_name { + local_var_form_params.insert("Parameter57.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_value { + local_var_form_params.insert("Parameter57.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_name { + local_var_form_params.insert("Parameter58.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_value { + local_var_form_params.insert("Parameter58.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_name { + local_var_form_params.insert("Parameter59.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_value { + local_var_form_params.insert("Parameter59.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_name { + local_var_form_params.insert("Parameter60.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_value { + local_var_form_params.insert("Parameter60.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_name { + local_var_form_params.insert("Parameter61.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_value { + local_var_form_params.insert("Parameter61.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_name { + local_var_form_params.insert("Parameter62.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_value { + local_var_form_params.insert("Parameter62.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_name { + local_var_form_params.insert("Parameter63.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_value { + local_var_form_params.insert("Parameter63.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_name { + local_var_form_params.insert("Parameter64.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_value { + local_var_form_params.insert("Parameter64.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_name { + local_var_form_params.insert("Parameter65.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_value { + local_var_form_params.insert("Parameter65.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_name { + local_var_form_params.insert("Parameter66.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_value { + local_var_form_params.insert("Parameter66.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_name { + local_var_form_params.insert("Parameter67.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_value { + local_var_form_params.insert("Parameter67.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_name { + local_var_form_params.insert("Parameter68.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_value { + local_var_form_params.insert("Parameter68.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_name { + local_var_form_params.insert("Parameter69.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_value { + local_var_form_params.insert("Parameter69.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_name { + local_var_form_params.insert("Parameter70.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_value { + local_var_form_params.insert("Parameter70.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_name { + local_var_form_params.insert("Parameter71.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_value { + local_var_form_params.insert("Parameter71.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_name { + local_var_form_params.insert("Parameter72.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_value { + local_var_form_params.insert("Parameter72.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_name { + local_var_form_params.insert("Parameter73.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_value { + local_var_form_params.insert("Parameter73.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_name { + local_var_form_params.insert("Parameter74.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_value { + local_var_form_params.insert("Parameter74.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_name { + local_var_form_params.insert("Parameter75.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_value { + local_var_form_params.insert("Parameter75.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_name { + local_var_form_params.insert("Parameter76.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_value { + local_var_form_params.insert("Parameter76.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_name { + local_var_form_params.insert("Parameter77.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_value { + local_var_form_params.insert("Parameter77.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_name { + local_var_form_params.insert("Parameter78.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_value { + local_var_form_params.insert("Parameter78.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_name { + local_var_form_params.insert("Parameter79.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_value { + local_var_form_params.insert("Parameter79.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_name { + local_var_form_params.insert("Parameter80.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_value { + local_var_form_params.insert("Parameter80.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_name { + local_var_form_params.insert("Parameter81.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_value { + local_var_form_params.insert("Parameter81.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_name { + local_var_form_params.insert("Parameter82.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_value { + local_var_form_params.insert("Parameter82.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_name { + local_var_form_params.insert("Parameter83.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_value { + local_var_form_params.insert("Parameter83.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_name { + local_var_form_params.insert("Parameter84.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_value { + local_var_form_params.insert("Parameter84.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_name { + local_var_form_params.insert("Parameter85.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_value { + local_var_form_params.insert("Parameter85.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_name { + local_var_form_params.insert("Parameter86.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_value { + local_var_form_params.insert("Parameter86.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_name { + local_var_form_params.insert("Parameter87.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_value { + local_var_form_params.insert("Parameter87.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_name { + local_var_form_params.insert("Parameter88.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_value { + local_var_form_params.insert("Parameter88.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_name { + local_var_form_params.insert("Parameter89.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_value { + local_var_form_params.insert("Parameter89.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_name { + local_var_form_params.insert("Parameter90.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_value { + local_var_form_params.insert("Parameter90.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_name { + local_var_form_params.insert("Parameter91.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_value { + local_var_form_params.insert("Parameter91.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_name { + local_var_form_params.insert("Parameter92.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_value { + local_var_form_params.insert("Parameter92.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_name { + local_var_form_params.insert("Parameter93.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_value { + local_var_form_params.insert("Parameter93.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_name { + local_var_form_params.insert("Parameter94.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_value { + local_var_form_params.insert("Parameter94.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_name { + local_var_form_params.insert("Parameter95.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_value { + local_var_form_params.insert("Parameter95.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_name { + local_var_form_params.insert("Parameter96.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_value { + local_var_form_params.insert("Parameter96.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_name { + local_var_form_params.insert("Parameter97.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_value { + local_var_form_params.insert("Parameter97.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_name { + local_var_form_params.insert("Parameter98.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_value { + local_var_form_params.insert("Parameter98.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_name { + local_var_form_params.insert("Parameter99.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_value { + local_var_form_params.insert("Parameter99.Value", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a Stream +pub async fn create_stream(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, url: &str, name: Option<&str>, track: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, parameter1_period_name: Option<&str>, parameter1_period_value: Option<&str>, parameter2_period_name: Option<&str>, parameter2_period_value: Option<&str>, parameter3_period_name: Option<&str>, parameter3_period_value: Option<&str>, parameter4_period_name: Option<&str>, parameter4_period_value: Option<&str>, parameter5_period_name: Option<&str>, parameter5_period_value: Option<&str>, parameter6_period_name: Option<&str>, parameter6_period_value: Option<&str>, parameter7_period_name: Option<&str>, parameter7_period_value: Option<&str>, parameter8_period_name: Option<&str>, parameter8_period_value: Option<&str>, parameter9_period_name: Option<&str>, parameter9_period_value: Option<&str>, parameter10_period_name: Option<&str>, parameter10_period_value: Option<&str>, parameter11_period_name: Option<&str>, parameter11_period_value: Option<&str>, parameter12_period_name: Option<&str>, parameter12_period_value: Option<&str>, parameter13_period_name: Option<&str>, parameter13_period_value: Option<&str>, parameter14_period_name: Option<&str>, parameter14_period_value: Option<&str>, parameter15_period_name: Option<&str>, parameter15_period_value: Option<&str>, parameter16_period_name: Option<&str>, parameter16_period_value: Option<&str>, parameter17_period_name: Option<&str>, parameter17_period_value: Option<&str>, parameter18_period_name: Option<&str>, parameter18_period_value: Option<&str>, parameter19_period_name: Option<&str>, parameter19_period_value: Option<&str>, parameter20_period_name: Option<&str>, parameter20_period_value: Option<&str>, parameter21_period_name: Option<&str>, parameter21_period_value: Option<&str>, parameter22_period_name: Option<&str>, parameter22_period_value: Option<&str>, parameter23_period_name: Option<&str>, parameter23_period_value: Option<&str>, parameter24_period_name: Option<&str>, parameter24_period_value: Option<&str>, parameter25_period_name: Option<&str>, parameter25_period_value: Option<&str>, parameter26_period_name: Option<&str>, parameter26_period_value: Option<&str>, parameter27_period_name: Option<&str>, parameter27_period_value: Option<&str>, parameter28_period_name: Option<&str>, parameter28_period_value: Option<&str>, parameter29_period_name: Option<&str>, parameter29_period_value: Option<&str>, parameter30_period_name: Option<&str>, parameter30_period_value: Option<&str>, parameter31_period_name: Option<&str>, parameter31_period_value: Option<&str>, parameter32_period_name: Option<&str>, parameter32_period_value: Option<&str>, parameter33_period_name: Option<&str>, parameter33_period_value: Option<&str>, parameter34_period_name: Option<&str>, parameter34_period_value: Option<&str>, parameter35_period_name: Option<&str>, parameter35_period_value: Option<&str>, parameter36_period_name: Option<&str>, parameter36_period_value: Option<&str>, parameter37_period_name: Option<&str>, parameter37_period_value: Option<&str>, parameter38_period_name: Option<&str>, parameter38_period_value: Option<&str>, parameter39_period_name: Option<&str>, parameter39_period_value: Option<&str>, parameter40_period_name: Option<&str>, parameter40_period_value: Option<&str>, parameter41_period_name: Option<&str>, parameter41_period_value: Option<&str>, parameter42_period_name: Option<&str>, parameter42_period_value: Option<&str>, parameter43_period_name: Option<&str>, parameter43_period_value: Option<&str>, parameter44_period_name: Option<&str>, parameter44_period_value: Option<&str>, parameter45_period_name: Option<&str>, parameter45_period_value: Option<&str>, parameter46_period_name: Option<&str>, parameter46_period_value: Option<&str>, parameter47_period_name: Option<&str>, parameter47_period_value: Option<&str>, parameter48_period_name: Option<&str>, parameter48_period_value: Option<&str>, parameter49_period_name: Option<&str>, parameter49_period_value: Option<&str>, parameter50_period_name: Option<&str>, parameter50_period_value: Option<&str>, parameter51_period_name: Option<&str>, parameter51_period_value: Option<&str>, parameter52_period_name: Option<&str>, parameter52_period_value: Option<&str>, parameter53_period_name: Option<&str>, parameter53_period_value: Option<&str>, parameter54_period_name: Option<&str>, parameter54_period_value: Option<&str>, parameter55_period_name: Option<&str>, parameter55_period_value: Option<&str>, parameter56_period_name: Option<&str>, parameter56_period_value: Option<&str>, parameter57_period_name: Option<&str>, parameter57_period_value: Option<&str>, parameter58_period_name: Option<&str>, parameter58_period_value: Option<&str>, parameter59_period_name: Option<&str>, parameter59_period_value: Option<&str>, parameter60_period_name: Option<&str>, parameter60_period_value: Option<&str>, parameter61_period_name: Option<&str>, parameter61_period_value: Option<&str>, parameter62_period_name: Option<&str>, parameter62_period_value: Option<&str>, parameter63_period_name: Option<&str>, parameter63_period_value: Option<&str>, parameter64_period_name: Option<&str>, parameter64_period_value: Option<&str>, parameter65_period_name: Option<&str>, parameter65_period_value: Option<&str>, parameter66_period_name: Option<&str>, parameter66_period_value: Option<&str>, parameter67_period_name: Option<&str>, parameter67_period_value: Option<&str>, parameter68_period_name: Option<&str>, parameter68_period_value: Option<&str>, parameter69_period_name: Option<&str>, parameter69_period_value: Option<&str>, parameter70_period_name: Option<&str>, parameter70_period_value: Option<&str>, parameter71_period_name: Option<&str>, parameter71_period_value: Option<&str>, parameter72_period_name: Option<&str>, parameter72_period_value: Option<&str>, parameter73_period_name: Option<&str>, parameter73_period_value: Option<&str>, parameter74_period_name: Option<&str>, parameter74_period_value: Option<&str>, parameter75_period_name: Option<&str>, parameter75_period_value: Option<&str>, parameter76_period_name: Option<&str>, parameter76_period_value: Option<&str>, parameter77_period_name: Option<&str>, parameter77_period_value: Option<&str>, parameter78_period_name: Option<&str>, parameter78_period_value: Option<&str>, parameter79_period_name: Option<&str>, parameter79_period_value: Option<&str>, parameter80_period_name: Option<&str>, parameter80_period_value: Option<&str>, parameter81_period_name: Option<&str>, parameter81_period_value: Option<&str>, parameter82_period_name: Option<&str>, parameter82_period_value: Option<&str>, parameter83_period_name: Option<&str>, parameter83_period_value: Option<&str>, parameter84_period_name: Option<&str>, parameter84_period_value: Option<&str>, parameter85_period_name: Option<&str>, parameter85_period_value: Option<&str>, parameter86_period_name: Option<&str>, parameter86_period_value: Option<&str>, parameter87_period_name: Option<&str>, parameter87_period_value: Option<&str>, parameter88_period_name: Option<&str>, parameter88_period_value: Option<&str>, parameter89_period_name: Option<&str>, parameter89_period_value: Option<&str>, parameter90_period_name: Option<&str>, parameter90_period_value: Option<&str>, parameter91_period_name: Option<&str>, parameter91_period_value: Option<&str>, parameter92_period_name: Option<&str>, parameter92_period_value: Option<&str>, parameter93_period_name: Option<&str>, parameter93_period_value: Option<&str>, parameter94_period_name: Option<&str>, parameter94_period_value: Option<&str>, parameter95_period_name: Option<&str>, parameter95_period_value: Option<&str>, parameter96_period_name: Option<&str>, parameter96_period_value: Option<&str>, parameter97_period_name: Option<&str>, parameter97_period_value: Option<&str>, parameter98_period_name: Option<&str>, parameter98_period_value: Option<&str>, parameter99_period_name: Option<&str>, parameter99_period_value: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Url", url.to_string()); + if let Some(local_var_param_value) = name { + local_var_form_params.insert("Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = track { + local_var_form_params.insert("Track", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_name { + local_var_form_params.insert("Parameter1.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_value { + local_var_form_params.insert("Parameter1.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_name { + local_var_form_params.insert("Parameter2.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_value { + local_var_form_params.insert("Parameter2.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_name { + local_var_form_params.insert("Parameter3.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_value { + local_var_form_params.insert("Parameter3.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_name { + local_var_form_params.insert("Parameter4.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_value { + local_var_form_params.insert("Parameter4.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_name { + local_var_form_params.insert("Parameter5.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_value { + local_var_form_params.insert("Parameter5.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_name { + local_var_form_params.insert("Parameter6.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_value { + local_var_form_params.insert("Parameter6.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_name { + local_var_form_params.insert("Parameter7.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_value { + local_var_form_params.insert("Parameter7.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_name { + local_var_form_params.insert("Parameter8.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_value { + local_var_form_params.insert("Parameter8.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_name { + local_var_form_params.insert("Parameter9.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_value { + local_var_form_params.insert("Parameter9.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_name { + local_var_form_params.insert("Parameter10.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_value { + local_var_form_params.insert("Parameter10.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_name { + local_var_form_params.insert("Parameter11.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_value { + local_var_form_params.insert("Parameter11.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_name { + local_var_form_params.insert("Parameter12.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_value { + local_var_form_params.insert("Parameter12.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_name { + local_var_form_params.insert("Parameter13.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_value { + local_var_form_params.insert("Parameter13.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_name { + local_var_form_params.insert("Parameter14.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_value { + local_var_form_params.insert("Parameter14.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_name { + local_var_form_params.insert("Parameter15.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_value { + local_var_form_params.insert("Parameter15.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_name { + local_var_form_params.insert("Parameter16.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_value { + local_var_form_params.insert("Parameter16.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_name { + local_var_form_params.insert("Parameter17.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_value { + local_var_form_params.insert("Parameter17.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_name { + local_var_form_params.insert("Parameter18.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_value { + local_var_form_params.insert("Parameter18.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_name { + local_var_form_params.insert("Parameter19.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_value { + local_var_form_params.insert("Parameter19.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_name { + local_var_form_params.insert("Parameter20.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_value { + local_var_form_params.insert("Parameter20.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_name { + local_var_form_params.insert("Parameter21.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_value { + local_var_form_params.insert("Parameter21.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_name { + local_var_form_params.insert("Parameter22.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_value { + local_var_form_params.insert("Parameter22.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_name { + local_var_form_params.insert("Parameter23.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_value { + local_var_form_params.insert("Parameter23.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_name { + local_var_form_params.insert("Parameter24.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_value { + local_var_form_params.insert("Parameter24.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_name { + local_var_form_params.insert("Parameter25.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_value { + local_var_form_params.insert("Parameter25.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_name { + local_var_form_params.insert("Parameter26.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_value { + local_var_form_params.insert("Parameter26.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_name { + local_var_form_params.insert("Parameter27.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_value { + local_var_form_params.insert("Parameter27.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_name { + local_var_form_params.insert("Parameter28.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_value { + local_var_form_params.insert("Parameter28.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_name { + local_var_form_params.insert("Parameter29.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_value { + local_var_form_params.insert("Parameter29.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_name { + local_var_form_params.insert("Parameter30.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_value { + local_var_form_params.insert("Parameter30.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_name { + local_var_form_params.insert("Parameter31.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_value { + local_var_form_params.insert("Parameter31.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_name { + local_var_form_params.insert("Parameter32.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_value { + local_var_form_params.insert("Parameter32.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_name { + local_var_form_params.insert("Parameter33.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_value { + local_var_form_params.insert("Parameter33.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_name { + local_var_form_params.insert("Parameter34.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_value { + local_var_form_params.insert("Parameter34.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_name { + local_var_form_params.insert("Parameter35.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_value { + local_var_form_params.insert("Parameter35.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_name { + local_var_form_params.insert("Parameter36.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_value { + local_var_form_params.insert("Parameter36.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_name { + local_var_form_params.insert("Parameter37.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_value { + local_var_form_params.insert("Parameter37.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_name { + local_var_form_params.insert("Parameter38.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_value { + local_var_form_params.insert("Parameter38.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_name { + local_var_form_params.insert("Parameter39.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_value { + local_var_form_params.insert("Parameter39.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_name { + local_var_form_params.insert("Parameter40.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_value { + local_var_form_params.insert("Parameter40.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_name { + local_var_form_params.insert("Parameter41.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_value { + local_var_form_params.insert("Parameter41.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_name { + local_var_form_params.insert("Parameter42.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_value { + local_var_form_params.insert("Parameter42.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_name { + local_var_form_params.insert("Parameter43.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_value { + local_var_form_params.insert("Parameter43.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_name { + local_var_form_params.insert("Parameter44.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_value { + local_var_form_params.insert("Parameter44.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_name { + local_var_form_params.insert("Parameter45.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_value { + local_var_form_params.insert("Parameter45.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_name { + local_var_form_params.insert("Parameter46.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_value { + local_var_form_params.insert("Parameter46.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_name { + local_var_form_params.insert("Parameter47.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_value { + local_var_form_params.insert("Parameter47.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_name { + local_var_form_params.insert("Parameter48.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_value { + local_var_form_params.insert("Parameter48.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_name { + local_var_form_params.insert("Parameter49.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_value { + local_var_form_params.insert("Parameter49.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_name { + local_var_form_params.insert("Parameter50.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_value { + local_var_form_params.insert("Parameter50.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_name { + local_var_form_params.insert("Parameter51.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_value { + local_var_form_params.insert("Parameter51.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_name { + local_var_form_params.insert("Parameter52.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_value { + local_var_form_params.insert("Parameter52.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_name { + local_var_form_params.insert("Parameter53.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_value { + local_var_form_params.insert("Parameter53.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_name { + local_var_form_params.insert("Parameter54.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_value { + local_var_form_params.insert("Parameter54.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_name { + local_var_form_params.insert("Parameter55.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_value { + local_var_form_params.insert("Parameter55.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_name { + local_var_form_params.insert("Parameter56.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_value { + local_var_form_params.insert("Parameter56.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_name { + local_var_form_params.insert("Parameter57.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_value { + local_var_form_params.insert("Parameter57.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_name { + local_var_form_params.insert("Parameter58.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_value { + local_var_form_params.insert("Parameter58.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_name { + local_var_form_params.insert("Parameter59.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_value { + local_var_form_params.insert("Parameter59.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_name { + local_var_form_params.insert("Parameter60.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_value { + local_var_form_params.insert("Parameter60.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_name { + local_var_form_params.insert("Parameter61.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_value { + local_var_form_params.insert("Parameter61.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_name { + local_var_form_params.insert("Parameter62.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_value { + local_var_form_params.insert("Parameter62.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_name { + local_var_form_params.insert("Parameter63.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_value { + local_var_form_params.insert("Parameter63.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_name { + local_var_form_params.insert("Parameter64.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_value { + local_var_form_params.insert("Parameter64.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_name { + local_var_form_params.insert("Parameter65.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_value { + local_var_form_params.insert("Parameter65.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_name { + local_var_form_params.insert("Parameter66.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_value { + local_var_form_params.insert("Parameter66.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_name { + local_var_form_params.insert("Parameter67.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_value { + local_var_form_params.insert("Parameter67.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_name { + local_var_form_params.insert("Parameter68.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_value { + local_var_form_params.insert("Parameter68.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_name { + local_var_form_params.insert("Parameter69.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_value { + local_var_form_params.insert("Parameter69.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_name { + local_var_form_params.insert("Parameter70.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_value { + local_var_form_params.insert("Parameter70.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_name { + local_var_form_params.insert("Parameter71.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_value { + local_var_form_params.insert("Parameter71.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_name { + local_var_form_params.insert("Parameter72.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_value { + local_var_form_params.insert("Parameter72.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_name { + local_var_form_params.insert("Parameter73.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_value { + local_var_form_params.insert("Parameter73.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_name { + local_var_form_params.insert("Parameter74.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_value { + local_var_form_params.insert("Parameter74.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_name { + local_var_form_params.insert("Parameter75.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_value { + local_var_form_params.insert("Parameter75.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_name { + local_var_form_params.insert("Parameter76.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_value { + local_var_form_params.insert("Parameter76.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_name { + local_var_form_params.insert("Parameter77.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_value { + local_var_form_params.insert("Parameter77.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_name { + local_var_form_params.insert("Parameter78.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_value { + local_var_form_params.insert("Parameter78.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_name { + local_var_form_params.insert("Parameter79.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_value { + local_var_form_params.insert("Parameter79.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_name { + local_var_form_params.insert("Parameter80.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_value { + local_var_form_params.insert("Parameter80.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_name { + local_var_form_params.insert("Parameter81.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_value { + local_var_form_params.insert("Parameter81.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_name { + local_var_form_params.insert("Parameter82.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_value { + local_var_form_params.insert("Parameter82.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_name { + local_var_form_params.insert("Parameter83.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_value { + local_var_form_params.insert("Parameter83.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_name { + local_var_form_params.insert("Parameter84.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_value { + local_var_form_params.insert("Parameter84.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_name { + local_var_form_params.insert("Parameter85.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_value { + local_var_form_params.insert("Parameter85.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_name { + local_var_form_params.insert("Parameter86.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_value { + local_var_form_params.insert("Parameter86.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_name { + local_var_form_params.insert("Parameter87.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_value { + local_var_form_params.insert("Parameter87.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_name { + local_var_form_params.insert("Parameter88.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_value { + local_var_form_params.insert("Parameter88.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_name { + local_var_form_params.insert("Parameter89.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_value { + local_var_form_params.insert("Parameter89.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_name { + local_var_form_params.insert("Parameter90.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_value { + local_var_form_params.insert("Parameter90.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_name { + local_var_form_params.insert("Parameter91.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_value { + local_var_form_params.insert("Parameter91.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_name { + local_var_form_params.insert("Parameter92.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_value { + local_var_form_params.insert("Parameter92.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_name { + local_var_form_params.insert("Parameter93.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_value { + local_var_form_params.insert("Parameter93.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_name { + local_var_form_params.insert("Parameter94.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_value { + local_var_form_params.insert("Parameter94.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_name { + local_var_form_params.insert("Parameter95.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_value { + local_var_form_params.insert("Parameter95.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_name { + local_var_form_params.insert("Parameter96.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_value { + local_var_form_params.insert("Parameter96.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_name { + local_var_form_params.insert("Parameter97.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_value { + local_var_form_params.insert("Parameter97.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_name { + local_var_form_params.insert("Parameter98.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_value { + local_var_form_params.insert("Parameter98.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_name { + local_var_form_params.insert("Parameter99.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_value { + local_var_form_params.insert("Parameter99.Value", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new token for ICE servers +pub async fn create_token(configuration: &configuration::Configuration, account_sid: &str, ttl: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Tokens.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = ttl { + local_var_form_params.insert("Ttl", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new UsageTrigger +pub async fn create_usage_trigger(configuration: &configuration::Configuration, account_sid: &str, callback_url: &str, trigger_value: &str, usage_category: &str, callback_method: Option<&str>, friendly_name: Option<&str>, recurring: Option<&str>, trigger_by: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CallbackUrl", callback_url.to_string()); + local_var_form_params.insert("TriggerValue", trigger_value.to_string()); + local_var_form_params.insert("UsageCategory", usage_category.to_string()); + if let Some(local_var_param_value) = callback_method { + local_var_form_params.insert("CallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recurring { + local_var_form_params.insert("Recurring", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trigger_by { + local_var_form_params.insert("TriggerBy", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Create a new User Defined Message for the given Call SID. +pub async fn create_user_defined_message(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, content: &str, idempotency_key: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Content", content.to_string()); + if let Some(local_var_param_value) = idempotency_key { + local_var_form_params.insert("IdempotencyKey", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Subscribe to User Defined Messages for a given Call SID. +pub async fn create_user_defined_message_subscription(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, callback: &str, idempotency_key: Option<&str>, method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Callback", callback.to_string()); + if let Some(local_var_param_value) = idempotency_key { + local_var_form_params.insert("IdempotencyKey", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn create_validation_request(configuration: &configuration::Configuration, account_sid: &str, phone_number: &str, friendly_name: Option<&str>, call_delay: Option, extension: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_delay { + local_var_form_params.insert("CallDelay", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = extension { + local_var_form_params.insert("Extension", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_address(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete the application by the specified application sid +pub async fn delete_application(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. +pub async fn delete_call(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a FeedbackSummary resource from a call +pub async fn delete_call_feedback_summary(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_call_recording(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_conference_recording(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an instance of a connect-app +pub async fn delete_connect_app(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a phone-numbers belonging to the account used to make the request. +pub async fn delete_incoming_phone_number(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Remove the assignment of an Add-on installation from the Number specified. +pub async fn delete_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete media from your account. Once delete, you will no longer be billed +pub async fn delete_media(configuration: &configuration::Configuration, account_sid: &str, message_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Deletes a message record from your account +pub async fn delete_message(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete the caller-id specified from the account +pub async fn delete_outgoing_caller_id(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Kick a participant from a given conference +pub async fn delete_participant(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, call_sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Remove an empty queue +pub async fn delete_queue(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_recording(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a result and purge all associated Payloads +pub async fn delete_recording_add_on_result(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a payload from the result along with all associated Data +pub async fn delete_recording_add_on_result_payload(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, add_on_result_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_recording_transcription(configuration: &configuration::Configuration, account_sid: &str, recording_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_signing_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential list mapping from the requested domain +pub async fn delete_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IP Access Control List mapping from the requested domain +pub async fn delete_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential list mapping from the requested domain +pub async fn delete_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential resource. +pub async fn delete_sip_credential(configuration: &configuration::Configuration, account_sid: &str, credential_list_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a Credential List +pub async fn delete_sip_credential_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a CredentialListMapping resource from an account. +pub async fn delete_sip_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an instance of a Domain +pub async fn delete_sip_domain(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAccessControlList from the requested account +pub async fn delete_sip_ip_access_control_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAccessControlListMapping resource. +pub async fn delete_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAddress resource. +pub async fn delete_sip_ip_address(configuration: &configuration::Configuration, account_sid: &str, ip_access_control_list_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a transcription from the account used to make the request +pub async fn delete_transcription(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_usage_trigger(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a specific User Defined Message Subscription. +pub async fn delete_user_defined_message_subscription(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the account specified by the provided Account Sid +pub async fn fetch_account(configuration: &configuration::Configuration, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{Sid}.json", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_address(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the application specified by the provided sid +pub async fn fetch_application(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an authorized-connect-app +pub async fn fetch_authorized_connect_app(configuration: &configuration::Configuration, account_sid: &str, connect_app_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConnectAppSid=crate::apis::urlencode(connect_app_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_available_phone_number_country(configuration: &configuration::Configuration, account_sid: &str, country_code: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information +pub async fn fetch_balance(configuration: &configuration::Configuration, account_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Balance.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the call specified by the provided Call SID +pub async fn fetch_call(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a Feedback resource from a call +pub async fn fetch_call_feedback(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a FeedbackSummary resource from a call +pub async fn fetch_call_feedback_summary(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_call_notification(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording for a call +pub async fn fetch_call_recording(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a conference +pub async fn fetch_conference(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording for a call +pub async fn fetch_conference_recording(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a connect-app +pub async fn fetch_connect_app(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an incoming-phone-number belonging to the account used to make the request. +pub async fn fetch_incoming_phone_number(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an Add-on installation currently assigned to this Number. +pub async fn fetch_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an Extension for the Assigned Add-on. +pub async fn fetch_incoming_phone_number_assigned_add_on_extension(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, assigned_add_on_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), AssignedAddOnSid=crate::apis::urlencode(assigned_add_on_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single media instance belonging to the account used to make the request +pub async fn fetch_media(configuration: &configuration::Configuration, account_sid: &str, message_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific member from the queue +pub async fn fetch_member(configuration: &configuration::Configuration, account_sid: &str, queue_sid: &str, call_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a message belonging to the account used to make the request +pub async fn fetch_message(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a notification belonging to the account used to make the request +pub async fn fetch_notification(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an outgoing-caller-id belonging to the account used to make the request +pub async fn fetch_outgoing_caller_id(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a participant +pub async fn fetch_participant(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, call_sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a queue identified by the QueueSid +pub async fn fetch_queue(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording +pub async fn fetch_recording(configuration: &configuration::Configuration, account_sid: &str, sid: &str, include_soft_deleted: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = include_soft_deleted { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSoftDeleted", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an AddOnResult +pub async fn fetch_recording_add_on_result(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a result payload +pub async fn fetch_recording_add_on_result_payload(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, add_on_result_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_recording_transcription(configuration: &configuration::Configuration, account_sid: &str, recording_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a short code +pub async fn fetch_short_code(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_signing_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of a credential list mapping +pub async fn fetch_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of an IP Access Control List mapping +pub async fn fetch_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of a credential list mapping +pub async fn fetch_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single credential. +pub async fn fetch_sip_credential(configuration: &configuration::Configuration, account_sid: &str, credential_list_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get a Credential List +pub async fn fetch_sip_credential_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single CredentialListMapping resource from an account. +pub async fn fetch_sip_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a Domain +pub async fn fetch_sip_domain(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of an IpAccessControlList +pub async fn fetch_sip_ip_access_control_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an IpAccessControlListMapping resource. +pub async fn fetch_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read one IpAddress resource. +pub async fn fetch_sip_ip_address(configuration: &configuration::Configuration, account_sid: &str, ip_access_control_list_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a Transcription +pub async fn fetch_transcription(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch and instance of a usage-trigger +pub async fn fetch_usage_trigger(configuration: &configuration::Configuration, account_sid: &str, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieves a collection of Accounts belonging to the account used to make the request +pub async fn list_account(configuration: &configuration::Configuration, friendly_name: Option<&str>, status: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_address(configuration: &configuration::Configuration, account_sid: &str, customer_name: Option<&str>, friendly_name: Option<&str>, iso_country: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = customer_name { + local_var_req_builder = local_var_req_builder.query(&[("CustomerName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = iso_country { + local_var_req_builder = local_var_req_builder.query(&[("IsoCountry", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of applications representing an application within the requesting account +pub async fn list_application(configuration: &configuration::Configuration, account_sid: &str, friendly_name: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of authorized-connect-apps belonging to the account used to make the request +pub async fn list_authorized_connect_app(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_country(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_local(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_machine_to_machine(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_mobile(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_national(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_shared_cost(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_toll_free(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_voip(configuration: &configuration::Configuration, account_sid: &str, country_code: &str, area_code: Option, contains: Option<&str>, sms_enabled: Option, mms_enabled: Option, voice_enabled: Option, exclude_all_address_required: Option, exclude_local_address_required: Option, exclude_foreign_address_required: Option, beta: Option, near_number: Option<&str>, near_lat_long: Option<&str>, distance: Option, in_postal_code: Option<&str>, in_region: Option<&str>, in_rate_center: Option<&str>, in_lata: Option<&str>, in_locality: Option<&str>, fax_enabled: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieves a collection of calls made to and from your account +pub async fn list_call(configuration: &configuration::Configuration, account_sid: &str, to: Option<&str>, from: Option<&str>, parent_call_sid: Option<&str>, status: Option<&str>, start_time: Option, start_time_less_than: Option, start_time_greater_than: Option, end_time: Option, end_time_less_than: Option, end_time_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = to { + local_var_req_builder = local_var_req_builder.query(&[("To", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = from { + local_var_req_builder = local_var_req_builder.query(&[("From", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = parent_call_sid { + local_var_req_builder = local_var_req_builder.query(&[("ParentCallSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time { + local_var_req_builder = local_var_req_builder.query(&[("StartTime", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time_less_than { + local_var_req_builder = local_var_req_builder.query(&[("StartTime<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("StartTime>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time { + local_var_req_builder = local_var_req_builder.query(&[("EndTime", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time_less_than { + local_var_req_builder = local_var_req_builder.query(&[("EndTime<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("EndTime>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of all events for a call. +pub async fn list_call_event(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_call_notification(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, log: Option, message_date: Option, message_date_less_than: Option, message_date_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = log { + local_var_req_builder = local_var_req_builder.query(&[("Log", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_less_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the call used to make the request +pub async fn list_call_recording(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, date_created: Option, date_created_less_than: Option, date_created_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of conferences belonging to the account used to make the request +pub async fn list_conference(configuration: &configuration::Configuration, account_sid: &str, date_created: Option, date_created_less_than: Option, date_created_greater_than: Option, date_updated: Option, date_updated_less_than: Option, date_updated_greater_than: Option, friendly_name: Option<&str>, status: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the call used to make the request +pub async fn list_conference_recording(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, date_created: Option, date_created_less_than: Option, date_created_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of connect-apps belonging to the account used to make the request +pub async fn list_connect_app(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_dependent_phone_number(configuration: &configuration::Configuration, account_sid: &str, address_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), AddressSid=crate::apis::urlencode(address_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. +pub async fn list_incoming_phone_number(configuration: &configuration::Configuration, account_sid: &str, beta: Option, friendly_name: Option<&str>, phone_number: Option<&str>, origin: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Add-on installations currently assigned to this Number. +pub async fn list_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Extensions for the Assigned Add-on. +pub async fn list_incoming_phone_number_assigned_add_on_extension(configuration: &configuration::Configuration, account_sid: &str, resource_sid: &str, assigned_add_on_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), AssignedAddOnSid=crate::apis::urlencode(assigned_add_on_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_local(configuration: &configuration::Configuration, account_sid: &str, beta: Option, friendly_name: Option<&str>, phone_number: Option<&str>, origin: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_mobile(configuration: &configuration::Configuration, account_sid: &str, beta: Option, friendly_name: Option<&str>, phone_number: Option<&str>, origin: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_toll_free(configuration: &configuration::Configuration, account_sid: &str, beta: Option, friendly_name: Option<&str>, phone_number: Option<&str>, origin: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_key(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Media resources belonging to the account used to make the request +pub async fn list_media(configuration: &configuration::Configuration, account_sid: &str, message_sid: &str, date_created: Option, date_created_less_than: Option, date_created_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve the members of the queue +pub async fn list_member(configuration: &configuration::Configuration, account_sid: &str, queue_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of messages belonging to the account used to make the request +pub async fn list_message(configuration: &configuration::Configuration, account_sid: &str, to: Option<&str>, from: Option<&str>, date_sent: Option, date_sent_less_than: Option, date_sent_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = to { + local_var_req_builder = local_var_req_builder.query(&[("To", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = from { + local_var_req_builder = local_var_req_builder.query(&[("From", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent { + local_var_req_builder = local_var_req_builder.query(&[("DateSent", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateSent<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateSent>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of notifications belonging to the account used to make the request +pub async fn list_notification(configuration: &configuration::Configuration, account_sid: &str, log: Option, message_date: Option, message_date_less_than: Option, message_date_greater_than: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Notifications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = log { + local_var_req_builder = local_var_req_builder.query(&[("Log", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_less_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of outgoing-caller-ids belonging to the account used to make the request +pub async fn list_outgoing_caller_id(configuration: &configuration::Configuration, account_sid: &str, phone_number: Option<&str>, friendly_name: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of participants belonging to the account used to make the request +pub async fn list_participant(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, muted: Option, hold: Option, coaching: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = muted { + local_var_req_builder = local_var_req_builder.query(&[("Muted", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = hold { + local_var_req_builder = local_var_req_builder.query(&[("Hold", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = coaching { + local_var_req_builder = local_var_req_builder.query(&[("Coaching", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of queues belonging to the account used to make the request +pub async fn list_queue(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the account used to make the request +pub async fn list_recording(configuration: &configuration::Configuration, account_sid: &str, date_created: Option, date_created_less_than: Option, date_created_greater_than: Option, call_sid: Option<&str>, conference_sid: Option<&str>, include_soft_deleted: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = call_sid { + local_var_req_builder = local_var_req_builder.query(&[("CallSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = conference_sid { + local_var_req_builder = local_var_req_builder.query(&[("ConferenceSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_soft_deleted { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSoftDeleted", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of results belonging to the recording +pub async fn list_recording_add_on_result(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of payloads belonging to the AddOnResult +pub async fn list_recording_add_on_result_payload(configuration: &configuration::Configuration, account_sid: &str, reference_sid: &str, add_on_result_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_recording_transcription(configuration: &configuration::Configuration, account_sid: &str, recording_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of short-codes belonging to the account used to make the request +pub async fn list_short_code(configuration: &configuration::Configuration, account_sid: &str, friendly_name: Option<&str>, short_code: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = short_code { + local_var_req_builder = local_var_req_builder.query(&[("ShortCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_signing_key(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credential list mappings belonging to the domain used in the request +pub async fn list_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IP Access Control List mappings belonging to the domain used in the request +pub async fn list_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credential list mappings belonging to the domain used in the request +pub async fn list_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credentials. +pub async fn list_sip_credential(configuration: &configuration::Configuration, account_sid: &str, credential_list_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get All Credential Lists +pub async fn list_sip_credential_list(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read multiple CredentialListMapping resources from an account. +pub async fn list_sip_credential_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of domains belonging to the account used to make the request +pub async fn list_sip_domain(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IpAccessControlLists that belong to the account used to make the request +pub async fn list_sip_ip_access_control_list(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IpAccessControlListMapping resources. +pub async fn list_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, account_sid: &str, domain_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read multiple IpAddress resources. +pub async fn list_sip_ip_address(configuration: &configuration::Configuration, account_sid: &str, ip_access_control_list_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of transcriptions belonging to the account used to make the request +pub async fn list_transcription(configuration: &configuration::Configuration, account_sid: &str, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of usage-records belonging to the account used to make the request +pub async fn list_usage_record(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_all_time(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_daily(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_last_month(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_monthly(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_this_month(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_today(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_yearly(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_usage_record_yesterday(configuration: &configuration::Configuration, account_sid: &str, category: Option<&str>, start_date: Option, end_date: Option, include_subaccounts: Option, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of usage-triggers belonging to the account used to make the request +pub async fn list_usage_trigger(configuration: &configuration::Configuration, account_sid: &str, recurring: Option<&str>, trigger_by: Option<&str>, usage_category: Option<&str>, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = recurring { + local_var_req_builder = local_var_req_builder.query(&[("Recurring", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = trigger_by { + local_var_req_builder = local_var_req_builder.query(&[("TriggerBy", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = usage_category { + local_var_req_builder = local_var_req_builder.query(&[("UsageCategory", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Modify the properties of a given Account +pub async fn update_account(configuration: &configuration::Configuration, sid: &str, friendly_name: Option<&str>, status: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{Sid}.json", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_address(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>, customer_name: Option<&str>, street: Option<&str>, city: Option<&str>, region: Option<&str>, postal_code: Option<&str>, emergency_enabled: Option, auto_correct_address: Option, street_secondary: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = customer_name { + local_var_form_params.insert("CustomerName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street { + local_var_form_params.insert("Street", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = city { + local_var_form_params.insert("City", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = region { + local_var_form_params.insert("Region", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = postal_code { + local_var_form_params.insert("PostalCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_enabled { + local_var_form_params.insert("EmergencyEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = auto_correct_address { + local_var_form_params.insert("AutoCorrectAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street_secondary { + local_var_form_params.insert("StreetSecondary", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the application's properties +pub async fn update_application(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>, api_version: Option<&str>, voice_url: Option<&str>, voice_method: Option<&str>, voice_fallback_url: Option<&str>, voice_fallback_method: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_caller_id_lookup: Option, sms_url: Option<&str>, sms_method: Option<&str>, sms_fallback_url: Option<&str>, sms_fallback_method: Option<&str>, sms_status_callback: Option<&str>, message_status_callback: Option<&str>, public_application_connect_enabled: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_status_callback { + local_var_form_params.insert("SmsStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = message_status_callback { + local_var_form_params.insert("MessageStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = public_application_connect_enabled { + local_var_form_params.insert("PublicApplicationConnectEnabled", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Initiates a call redirect or terminates a call +pub async fn update_call(configuration: &configuration::Configuration, account_sid: &str, sid: &str, url: Option<&str>, method: Option<&str>, status: Option<&str>, fallback_url: Option<&str>, fallback_method: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, twiml: Option<&str>, time_limit: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = url { + local_var_form_params.insert("Url", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_url { + local_var_form_params.insert("FallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_method { + local_var_form_params.insert("FallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = twiml { + local_var_form_params.insert("Twiml", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a Feedback resource for a call +pub async fn update_call_feedback(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, quality_score: Option, issue: Option>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = quality_score { + local_var_form_params.insert("QualityScore", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = issue { + local_var_form_params.insert("Issue", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording. +pub async fn update_call_recording(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str, status: &str, pause_behavior: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + if let Some(local_var_param_value) = pause_behavior { + local_var_form_params.insert("PauseBehavior", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_conference(configuration: &configuration::Configuration, account_sid: &str, sid: &str, status: Option<&str>, announce_url: Option<&str>, announce_method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_url { + local_var_form_params.insert("AnnounceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_method { + local_var_form_params.insert("AnnounceMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. +pub async fn update_conference_recording(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, sid: &str, status: &str, pause_behavior: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + if let Some(local_var_param_value) = pause_behavior { + local_var_form_params.insert("PauseBehavior", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a connect-app with the specified parameters +pub async fn update_connect_app(configuration: &configuration::Configuration, account_sid: &str, sid: &str, authorize_redirect_url: Option<&str>, company_name: Option<&str>, deauthorize_callback_method: Option<&str>, deauthorize_callback_url: Option<&str>, description: Option<&str>, friendly_name: Option<&str>, homepage_url: Option<&str>, permissions: Option>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = authorize_redirect_url { + local_var_form_params.insert("AuthorizeRedirectUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = company_name { + local_var_form_params.insert("CompanyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = deauthorize_callback_method { + local_var_form_params.insert("DeauthorizeCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = deauthorize_callback_url { + local_var_form_params.insert("DeauthorizeCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = description { + local_var_form_params.insert("Description", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = homepage_url { + local_var_form_params.insert("HomepageUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = permissions { + local_var_form_params.insert("Permissions", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an incoming-phone-number instance. +pub async fn update_incoming_phone_number(configuration: &configuration::Configuration, account_sid: &str, sid: &str, account_sid2: Option<&str>, api_version: Option<&str>, friendly_name: Option<&str>, sms_application_sid: Option<&str>, sms_fallback_method: Option<&str>, sms_fallback_url: Option<&str>, sms_method: Option<&str>, sms_url: Option<&str>, status_callback: Option<&str>, status_callback_method: Option<&str>, voice_application_sid: Option<&str>, voice_caller_id_lookup: Option, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_url: Option<&str>, emergency_status: Option<&str>, emergency_address_sid: Option<&str>, trunk_sid: Option<&str>, voice_receive_mode: Option<&str>, identity_sid: Option<&str>, address_sid: Option<&str>, bundle_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = account_sid2 { + local_var_form_params.insert("AccountSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL +pub async fn update_member(configuration: &configuration::Configuration, account_sid: &str, queue_sid: &str, call_sid: &str, url: &str, method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Url", url.to_string()); + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// To redact a message-body from a post-flight message record, post to the message instance resource with an empty body +pub async fn update_message(configuration: &configuration::Configuration, account_sid: &str, sid: &str, body: Option<&str>, status: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = body { + local_var_form_params.insert("Body", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the caller-id +pub async fn update_outgoing_caller_id(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the properties of the participant +pub async fn update_participant(configuration: &configuration::Configuration, account_sid: &str, conference_sid: &str, call_sid: &str, muted: Option, hold: Option, hold_url: Option<&str>, hold_method: Option<&str>, announce_url: Option<&str>, announce_method: Option<&str>, wait_url: Option<&str>, wait_method: Option<&str>, beep_on_exit: Option, end_conference_on_exit: Option, coaching: Option, call_sid_to_coach: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = muted { + local_var_form_params.insert("Muted", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold { + local_var_form_params.insert("Hold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold_url { + local_var_form_params.insert("HoldUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold_method { + local_var_form_params.insert("HoldMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_url { + local_var_form_params.insert("AnnounceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_method { + local_var_form_params.insert("AnnounceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_url { + local_var_form_params.insert("WaitUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_method { + local_var_form_params.insert("WaitMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = beep_on_exit { + local_var_form_params.insert("BeepOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = end_conference_on_exit { + local_var_form_params.insert("EndConferenceOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = coaching { + local_var_form_params.insert("Coaching", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_sid_to_coach { + local_var_form_params.insert("CallSidToCoach", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// update an instance of payments with different phases of payment flows. +pub async fn update_payments(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str, idempotency_key: &str, status_callback: &str, capture: Option<&str>, status: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IdempotencyKey", idempotency_key.to_string()); + local_var_form_params.insert("StatusCallback", status_callback.to_string()); + if let Some(local_var_param_value) = capture { + local_var_form_params.insert("Capture", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the queue with the new parameters +pub async fn update_queue(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>, max_size: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_size { + local_var_form_params.insert("MaxSize", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a short code with the following parameters +pub async fn update_short_code(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>, api_version: Option<&str>, sms_url: Option<&str>, sms_method: Option<&str>, sms_fallback_url: Option<&str>, sms_fallback_method: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_signing_key(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a credential resource. +pub async fn update_sip_credential(configuration: &configuration::Configuration, account_sid: &str, credential_list_sid: &str, sid: &str, password: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = password { + local_var_form_params.insert("Password", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a Credential List +pub async fn update_sip_credential_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the attributes of a domain +pub async fn update_sip_domain(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: Option<&str>, voice_fallback_method: Option<&str>, voice_fallback_url: Option<&str>, voice_method: Option<&str>, voice_status_callback_method: Option<&str>, voice_status_callback_url: Option<&str>, voice_url: Option<&str>, sip_registration: Option, domain_name: Option<&str>, emergency_calling_enabled: Option, secure: Option, byoc_trunk_sid: Option<&str>, emergency_caller_sid: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_method { + local_var_form_params.insert("VoiceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_url { + local_var_form_params.insert("VoiceStatusCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_registration { + local_var_form_params.insert("SipRegistration", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = domain_name { + local_var_form_params.insert("DomainName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_calling_enabled { + local_var_form_params.insert("EmergencyCallingEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = secure { + local_var_form_params.insert("Secure", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc_trunk_sid { + local_var_form_params.insert("ByocTrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_caller_sid { + local_var_form_params.insert("EmergencyCallerSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Rename an IpAccessControlList +pub async fn update_sip_ip_access_control_list(configuration: &configuration::Configuration, account_sid: &str, sid: &str, friendly_name: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an IpAddress resource. +pub async fn update_sip_ip_address(configuration: &configuration::Configuration, account_sid: &str, ip_access_control_list_sid: &str, sid: &str, ip_address: Option<&str>, friendly_name: Option<&str>, cidr_prefix_length: Option) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = ip_address { + local_var_form_params.insert("IpAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = cidr_prefix_length { + local_var_form_params.insert("CidrPrefixLength", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Stop a Siprec using either the SID of the Siprec resource or the `name` used when creating the resource +pub async fn update_siprec(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str, status: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource +pub async fn update_stream(configuration: &configuration::Configuration, account_sid: &str, call_sid: &str, sid: &str, status: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an instance of a usage trigger +pub async fn update_usage_trigger(configuration: &configuration::Configuration, account_sid: &str, sid: &str, callback_method: Option<&str>, callback_url: Option<&str>, friendly_name: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = callback_method { + local_var_form_params.insert("CallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = callback_url { + local_var_form_params.insert("CallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/twil-api/src/apis/mod.rs b/twil-api/src/apis/mod.rs new file mode 100644 index 0000000..4b09ba5 --- /dev/null +++ b/twil-api/src/apis/mod.rs @@ -0,0 +1,95 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +pub mod default_api; + +pub mod configuration; diff --git a/twil-api/src/lib.rs b/twil-api/src/lib.rs new file mode 100644 index 0000000..c1dd666 --- /dev/null +++ b/twil-api/src/lib.rs @@ -0,0 +1,10 @@ +#[macro_use] +extern crate serde_derive; + +extern crate serde; +extern crate serde_json; +extern crate url; +extern crate reqwest; + +pub mod apis; +pub mod models; diff --git a/twil-api/src/models/account_enum_status.rs b/twil-api/src/models/account_enum_status.rs new file mode 100644 index 0000000..d1c48e3 --- /dev/null +++ b/twil-api/src/models/account_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AccountEnumStatus { + #[serde(rename = "active")] + Active, + #[serde(rename = "suspended")] + Suspended, + #[serde(rename = "closed")] + Closed, + +} + +impl ToString for AccountEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("active"), + Self::Suspended => String::from("suspended"), + Self::Closed => String::from("closed"), + } + } +} + +impl Default for AccountEnumStatus { + fn default() -> AccountEnumStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/account_enum_type.rs b/twil-api/src/models/account_enum_type.rs new file mode 100644 index 0000000..de577f6 --- /dev/null +++ b/twil-api/src/models/account_enum_type.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AccountEnumType { + #[serde(rename = "Trial")] + Trial, + #[serde(rename = "Full")] + Full, + +} + +impl ToString for AccountEnumType { + fn to_string(&self) -> String { + match self { + Self::Trial => String::from("Trial"), + Self::Full => String::from("Full"), + } + } +} + +impl Default for AccountEnumType { + fn default() -> AccountEnumType { + Self::Trial + } +} + + + + diff --git a/twil-api/src/models/api_period_v2010_period_account.rs b/twil-api/src/models/api_period_v2010_period_account.rs new file mode 100644 index 0000000..2f74197 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account.rs @@ -0,0 +1,63 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccount { + /// The authorization token for this account. This token should be kept a secret, so no sharing. + #[serde(rename = "auth_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub auth_token: Option>, + /// The date that this account was created, in GMT in RFC 2822 format + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this account was last updated, in GMT in RFC 2822 format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A human readable description of this account, up to 64 characters long. By default the FriendlyName is your email address. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid. + #[serde(rename = "owner_account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub owner_account_sid: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// A Map of various subresources available for the given Account Instance + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccount { + pub fn new() -> ApiPeriodV2010PeriodAccount { + ApiPeriodV2010PeriodAccount { + auth_token: None, + date_created: None, + date_updated: None, + friendly_name: None, + owner_account_sid: None, + sid: None, + status: None, + subresource_uris: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_address.rs b/twil-api/src/models/api_period_v2010_period_account_period_address.rs new file mode 100644 index 0000000..07a8f5b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_address.rs @@ -0,0 +1,89 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAddress { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The city in which the address is located. + #[serde(rename = "city", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub city: Option>, + /// The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters. + #[serde(rename = "customer_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub customer_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The ISO country code of the address. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The postal code of the address. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The state or region of the address. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The unique string that that we created to identify the Address resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The number and street address of the address. + #[serde(rename = "street", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub street: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether emergency calling has been enabled on this number. + #[serde(rename = "emergency_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_enabled: Option>, + /// Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid. + #[serde(rename = "validated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub validated: Option>, + /// Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid. + #[serde(rename = "verified", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verified: Option>, + /// The additional number and street address of the address. + #[serde(rename = "street_secondary", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub street_secondary: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAddress { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAddress { + ApiPeriodV2010PeriodAccountPeriodAddress { + account_sid: None, + city: None, + customer_name: None, + date_created: None, + date_updated: None, + friendly_name: None, + iso_country: None, + postal_code: None, + region: None, + sid: None, + street: None, + uri: None, + emergency_enabled: None, + validated: None, + verified: None, + street_secondary: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs b/twil-api/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs new file mode 100644 index 0000000..01f40cc --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs @@ -0,0 +1,237 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + /// The unique string that that we created to identify the DependentPhoneNumber resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database. Can be: `true` or `false`. Caller ID lookups can cost $0.01 each. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from the phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + sid: None, + account_sid: None, + friendly_name: None, + phone_number: None, + voice_url: None, + voice_method: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_caller_id_lookup: None, + date_created: None, + date_updated: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + address_requirements: None, + capabilities: None, + status_callback: None, + status_callback_method: None, + api_version: None, + sms_application_sid: None, + voice_application_sid: None, + trunk_sid: None, + emergency_status: None, + emergency_address_sid: None, + uri: None, + } + } +} + +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_application.rs b/twil-api/src/models/api_period_v2010_period_account_period_application.rs new file mode 100644 index 0000000..804a5b6 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_application.rs @@ -0,0 +1,219 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodApplication { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The URL we call using a POST method to send message status information to your application. + #[serde(rename = "message_status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_status_callback: Option>, + /// The unique string that that we created to identify the Application resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call using a POST method to send status information to your application about SMS messages that refer to the application. + #[serde(rename = "sms_status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_status_callback: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number assigned to this application receives a call. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. + #[serde(rename = "public_application_connect_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub public_application_connect_enabled: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodApplication { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodApplication { + ApiPeriodV2010PeriodAccountPeriodApplication { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + friendly_name: None, + message_status_callback: None, + sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_status_callback: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + uri: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + public_application_connect_enabled: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs b/twil-api/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs new file mode 100644 index 0000000..656915f --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs @@ -0,0 +1,65 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The company name set for the Connect App. + #[serde(rename = "connect_app_company_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_company_name: Option>, + /// A detailed description of the Connect App. + #[serde(rename = "connect_app_description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_description: Option>, + /// The name of the Connect App. + #[serde(rename = "connect_app_friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_friendly_name: Option>, + /// The public URL for the Connect App. + #[serde(rename = "connect_app_homepage_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_homepage_url: Option>, + /// The SID that we assigned to the Connect App. + #[serde(rename = "connect_app_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`. + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + account_sid: None, + connect_app_company_name: None, + connect_app_description: None, + connect_app_friendly_name: None, + connect_app_homepage_url: None, + connect_app_sid: None, + date_created: None, + date_updated: None, + permissions: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs new file mode 100644 index 0000000..9009288 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country. + #[serde(rename = "country_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub country_code: Option>, + /// The name of the country. + #[serde(rename = "country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub country: Option>, + /// The URI of the Country resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether all phone numbers available in the country are new to the Twilio platform. `true` if they are and `false` if all numbers are not in the Twilio Phone Number Beta program. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + /// A list of related AvailablePhoneNumber resources identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + country_code: None, + country: None, + uri: None, + beta: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs new file mode 100644 index 0000000..16ac599 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs new file mode 100644 index 0000000..328b8a0 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs new file mode 100644 index 0000000..f97b6ef --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs new file mode 100644 index 0000000..8d0fe31 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs new file mode 100644 index 0000000..2e219c5 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs new file mode 100644 index 0000000..5646285 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs new file mode 100644 index 0000000..e2d3be3 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_balance.rs b/twil-api/src/models/api_period_v2010_period_account_period_balance.rs new file mode 100644 index 0000000..ac4a878 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_balance.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodBalance { + /// The unique SID identifier of the Account. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information + #[serde(rename = "balance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub balance: Option>, + /// The units of currency for the account balance + #[serde(rename = "currency", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub currency: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodBalance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodBalance { + ApiPeriodV2010PeriodAccountPeriodBalance { + account_sid: None, + balance: None, + currency: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call.rs b/twil-api/src/models/api_period_v2010_period_account_period_call.rs new file mode 100644 index 0000000..bbe9540 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call.rs @@ -0,0 +1,128 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCall { + /// The unique string that we created to identify this Call resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID that identifies the call that created this leg. + #[serde(rename = "parent_call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parent_call_sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. + #[serde(rename = "to", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to: Option>, + /// The phone number, SIP address or Client identifier that received this call. Formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). + #[serde(rename = "to_formatted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to_formatted: Option>, + /// The phone number, SIP address, Client identifier or SIM SID that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. + #[serde(rename = "from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from: Option>, + /// The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). + #[serde(rename = "from_formatted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from_formatted: Option>, + /// If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. + #[serde(rename = "phone_number_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number_sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. + #[serde(rename = "end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_time: Option>, + /// The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// A string describing the direction of the call. Can be: `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `` verb. Using [Elastic SIP Trunking](https://www.twilio.com/docs/sip-trunking), the values can be [`trunking-terminating`](https://www.twilio.com/docs/sip-trunking#termination) for outgoing calls from your communications infrastructure to the PSTN or [`trunking-originating`](https://www.twilio.com/docs/sip-trunking#origination) for incoming calls to your communications infrastructure from the PSTN. + #[serde(rename = "direction", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub direction: Option>, + /// Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise. + #[serde(rename = "answered_by", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub answered_by: Option>, + /// The API version used to create the call. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty. + #[serde(rename = "forwarded_from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub forwarded_from: Option>, + /// The Group SID associated with this call. If no Group is associated with the call, the field is empty. + #[serde(rename = "group_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub group_sid: Option>, + /// The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty. + #[serde(rename = "caller_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub caller_name: Option>, + /// The wait time in milliseconds before the call is placed. + #[serde(rename = "queue_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub queue_time: Option>, + /// The unique identifier of the trunk resource that was used for this call. The field is empty if the call was not made using a SIP trunk or if the call is not terminated. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of subresources available to this call, identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCall { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCall { + ApiPeriodV2010PeriodAccountPeriodCall { + sid: None, + date_created: None, + date_updated: None, + parent_call_sid: None, + account_sid: None, + to: None, + to_formatted: None, + from: None, + from_formatted: None, + phone_number_sid: None, + status: None, + start_time: None, + end_time: None, + duration: None, + price: None, + price_unit: None, + direction: None, + answered_by: None, + api_version: None, + forwarded_from: None, + group_sid: None, + caller_name: None, + queue_time: None, + trunk_sid: None, + uri: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_event.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_event.rs new file mode 100644 index 0000000..e241177 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_event.rs @@ -0,0 +1,33 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + /// Contains a dictionary representing the request of the call. + #[serde(rename = "request", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request: Option>, + /// Contains a dictionary representing the call response, including a list of the call events. + #[serde(rename = "response", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + request: None, + response: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs new file mode 100644 index 0000000..0ca8a09 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. + #[serde(rename = "issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub issues: Option>>, + /// `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call. + #[serde(rename = "quality_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + account_sid: None, + date_created: None, + date_updated: None, + issues: None, + quality_score: None, + sid: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs new file mode 100644 index 0000000..d0faf54 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs @@ -0,0 +1,80 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The total number of calls. + #[serde(rename = "call_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_count: Option>, + /// The total number of calls with a feedback entry. + #[serde(rename = "call_feedback_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_feedback_count: Option>, + /// The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`. + #[serde(rename = "include_subaccounts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub include_subaccounts: Option>, + /// A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`. + #[serde(rename = "issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub issues: Option>>, + /// The average QualityScore of the feedback entries. + #[serde(rename = "quality_score_average", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_average: Option>, + /// The median QualityScore of the feedback entries. + #[serde(rename = "quality_score_median", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_median: Option>, + /// The standard deviation of the quality scores. + #[serde(rename = "quality_score_standard_deviation", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_standard_deviation: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + account_sid: None, + call_count: None, + call_feedback_count: None, + date_created: None, + date_updated: None, + end_date: None, + include_subaccounts: None, + issues: None, + quality_score_average: None, + quality_score_median: None, + quality_score_standard_deviation: None, + sid: None, + start_date: None, + status: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs new file mode 100644 index 0000000..fa715c9 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the Call Notification resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The unique string that that we created to identify the Call Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs new file mode 100644 index 0000000..52ada17 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs @@ -0,0 +1,115 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the Call Notification resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. + #[serde(rename = "request_variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_variables: Option>, + /// The HTTP body returned by your server. + #[serde(rename = "response_body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_body: Option>, + /// The HTTP headers returned by your server. + #[serde(rename = "response_headers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_headers: Option>, + /// The unique string that that we created to identify the Call Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + request_variables: None, + response_body: None, + response_headers: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs new file mode 100644 index 0000000..fd4544b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs @@ -0,0 +1,95 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to make the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording, if a conference recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The recorded track. Can be: `inbound`, `outbound`, or `both`. + #[serde(rename = "track", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub track: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + uri: None, + encryption_details: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + track: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_payments.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_payments.rs new file mode 100644 index 0000000..d2bc603 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_payments.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID of the Payments resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_siprec.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_siprec.rs new file mode 100644 index 0000000..b40cee4 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_siprec.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + /// The SID of the Siprec resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + sid: None, + account_sid: None, + call_sid: None, + name: None, + status: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_stream.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_stream.rs new file mode 100644 index 0000000..f4c6186 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_stream.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + /// The SID of the Stream resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + sid: None, + account_sid: None, + call_sid: None, + name: None, + status: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs new file mode 100644 index 0000000..ecef848 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs @@ -0,0 +1,41 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID that uniquely identifies this User Defined Message. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date that this User Defined Message was created, given in RFC 2822 format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs b/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs new file mode 100644 index 0000000..3c4e480 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID that uniquely identifies this User Defined Message Subscription. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date that this User Defined Message Subscription was created, given in RFC 2822 format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The URI of the User Defined Message Subscription Resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_conference.rs b/twil-api/src/models/api_period_v2010_period_account_period_conference.rs new file mode 100644 index 0000000..fa874f0 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_conference.rs @@ -0,0 +1,71 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConference { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Conference resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The API version used to create this conference. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// A string that you assigned to describe this conference room. Maxiumum length is 128 characters. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The unique string that that we created to identify this Conference resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of related resources identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + #[serde(rename = "reason_conference_ended", skip_serializing_if = "Option::is_none")] + pub reason_conference_ended: Option, + /// The call SID that caused the conference to end. + #[serde(rename = "call_sid_ending_conference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid_ending_conference: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConference { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConference { + ApiPeriodV2010PeriodAccountPeriodConference { + account_sid: None, + date_created: None, + date_updated: None, + api_version: None, + friendly_name: None, + region: None, + sid: None, + status: None, + uri: None, + subresource_uris: None, + reason_conference_ended: None, + call_sid_ending_conference: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs b/twil-api/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs new file mode 100644 index 0000000..33aeba6 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs @@ -0,0 +1,91 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Conference Recording resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Conference Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + encryption_details: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_conference_period_participant.rs b/twil-api/src/models/api_period_v2010_period_account_period_conference_period_participant.rs new file mode 100644 index 0000000..de949db --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_conference_period_participant.rs @@ -0,0 +1,80 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Participant resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified label of this participant, if one was given when the participant was created. This may be used to fetch, update or delete the participant. + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + /// The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. + #[serde(rename = "call_sid_to_coach", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid_to_coach: Option>, + /// Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. + #[serde(rename = "coaching", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub coaching: Option>, + /// The SID of the conference the participant is in. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// Whether the conference ends when the participant leaves. Can be: `true` or `false` and the default is `false`. If `true`, the conference ends and all other participants drop out when the participant leaves. + #[serde(rename = "end_conference_on_exit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_conference_on_exit: Option>, + /// Whether the participant is muted. Can be `true` or `false`. + #[serde(rename = "muted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub muted: Option>, + /// Whether the participant is on hold. Can be `true` or `false`. + #[serde(rename = "hold", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub hold: Option>, + /// Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. + #[serde(rename = "start_conference_on_enter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_conference_on_enter: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + account_sid: None, + call_sid: None, + label: None, + call_sid_to_coach: None, + coaching: None, + conference_sid: None, + date_created: None, + date_updated: None, + end_conference_on_exit: None, + muted: None, + hold: None, + start_conference_on_enter: None, + status: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_connect_app.rs b/twil-api/src/models/api_period_v2010_period_account_period_connect_app.rs new file mode 100644 index 0000000..5e91fae --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_connect_app.rs @@ -0,0 +1,91 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConnectApp { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App. + #[serde(rename = "authorize_redirect_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub authorize_redirect_url: Option>, + /// The company name set for the Connect App. + #[serde(rename = "company_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub company_name: Option>, + /// The HTTP method we use to call `deauthorize_callback_url`. + #[serde(rename = "deauthorize_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deauthorize_callback_method: Option>, + /// The URL we call using the `deauthorize_callback_method` to de-authorize the Connect App. + #[serde(rename = "deauthorize_callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deauthorize_callback_url: Option>, + /// The description of the Connect App. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The public URL where users can obtain more information about this Connect App. + #[serde(rename = "homepage_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub homepage_url: Option>, + /// The set of permissions that your ConnectApp requests. + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>>, + /// The unique string that that we created to identify the ConnectApp resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConnectApp { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConnectApp { + ApiPeriodV2010PeriodAccountPeriodConnectApp { + account_sid: None, + authorize_redirect_url: None, + company_name: None, + deauthorize_callback_method: None, + deauthorize_callback_url: None, + description: None, + friendly_name: None, + homepage_url: None, + permissions: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method we use to call `deauthorize_callback_url`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DeauthorizeCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for DeauthorizeCallbackMethod { + fn default() -> DeauthorizeCallbackMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs new file mode 100644 index 0000000..4f4a16c --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this IncomingPhoneNumber resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify this IncomingPhoneNumber resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs new file mode 100644 index 0000000..66f439c --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs @@ -0,0 +1,69 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Phone Number to which the Add-on is assigned. + #[serde(rename = "resource_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A short description of the functionality that the Add-on provides. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// A JSON string that represents the current configuration of this Add-on installation. + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, + /// An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. + #[serde(rename = "unique_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unique_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + sid: None, + account_sid: None, + resource_sid: None, + friendly_name: None, + description: None, + configuration: None, + unique_name: None, + date_created: None, + date_updated: None, + uri: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs new file mode 100644 index 0000000..5625c59 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Phone Number to which the Add-on is assigned. + #[serde(rename = "resource_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource_sid: Option>, + /// The SID that uniquely identifies the assigned Add-on installation. + #[serde(rename = "assigned_add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub assigned_add_on_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A string that you assigned to describe the Product this Extension is used within. + #[serde(rename = "product_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub product_name: Option>, + /// An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. + #[serde(rename = "unique_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unique_name: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether the Extension will be invoked. + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + sid: None, + account_sid: None, + resource_sid: None, + assigned_add_on_sid: None, + friendly_name: None, + product_name: None, + unique_name: None, + uri: None, + enabled: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs new file mode 100644 index 0000000..e1d1b6e --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when this phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs new file mode 100644 index 0000000..3d4c404 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs new file mode 100644 index 0000000..76d5308 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_key.rs b/twil-api/src/models/api_period_v2010_period_account_period_key.rs new file mode 100644 index 0000000..947bc56 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_key.rs @@ -0,0 +1,41 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodKey { + /// The unique string that that we created to identify the Key resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodKey { + ApiPeriodV2010PeriodAccountPeriodKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_message.rs b/twil-api/src/models/api_period_v2010_period_account_period_message.rs new file mode 100644 index 0000000..e7adbee --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_message.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessage { + /// The message text. Can be up to 1,600 characters long. + #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub body: Option>, + /// The number of segments that make up the complete message. A message body that is too large to be sent in a single SMS message is segmented and charged as multiple messages. Inbound messages over 160 characters are reassembled when the message is received. Note: When using a Messaging Service to send messages, `num_segments` will always be 0 in Twilio's response to your API request. + #[serde(rename = "num_segments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub num_segments: Option>, + #[serde(rename = "direction", skip_serializing_if = "Option::is_none")] + pub direction: Option, + /// The phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or [Wireless SIM](https://www.twilio.com/docs/wireless/tutorials/communications-guides/how-to-send-and-receive-text-messages) that initiated the message. For incoming messages, this will be the number of the sending phone. For outgoing messages, this value will be one of your Twilio phone numbers or the alphanumeric sender ID used. + #[serde(rename = "from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from: Option>, + /// The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format that received the message. For incoming messages, this will be one of your Twilio phone numbers. For outgoing messages, this will be the sending phone. + #[serde(rename = "to", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The amount billed for the message, in the currency specified by `price_unit`. Note that your account is charged for each segment we send to the handset. Populated after the message has been sent. May not be immediately available. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The description of the `error_code` if your message `status` is `failed` or `undelivered`. If the message was successful, this value is null. + #[serde(rename = "error_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_message: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that sent the message that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The number of media files associated with the message. A message can send up to 10 media files. + #[serde(rename = "num_media", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub num_media: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) used with the message. The value is null if a Messaging Service was not used. + #[serde(rename = "messaging_service_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub messaging_service_sid: Option>, + /// The unique string that that we created to identify the Message resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that the resource was sent specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. For outgoing messages, this is when we sent the message. For incoming messages, this is when we made the HTTP request to your application. + #[serde(rename = "date_sent", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_sent: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The error code returned if your message `status` is `failed` or `undelivered`. The error_code provides more information about the failure. If the message was successful, this value is null. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The API version used to process the message. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// A list of related resources identified by their URIs relative to `https://api.twilio.com` + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessage { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessage { + ApiPeriodV2010PeriodAccountPeriodMessage { + body: None, + num_segments: None, + direction: None, + from: None, + to: None, + date_updated: None, + price: None, + error_message: None, + uri: None, + account_sid: None, + num_media: None, + status: None, + messaging_service_sid: None, + sid: None, + date_sent: None, + date_created: None, + error_code: None, + price_unit: None, + api_version: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_message_period_media.rs b/twil-api/src/models/api_period_v2010_period_account_period_message_period_media.rs new file mode 100644 index 0000000..97bd04c --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_message_period_media.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Media resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The default [mime-type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif` + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID of the resource that created the media. + #[serde(rename = "parent_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parent_sid: Option>, + /// The unique string that that we created to identify this Media resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + account_sid: None, + content_type: None, + date_created: None, + date_updated: None, + parent_sid: None, + sid: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs b/twil-api/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs new file mode 100644 index 0000000..345d686 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs @@ -0,0 +1,48 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Message resource for which the feedback was provided. + #[serde(rename = "message_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_sid: Option>, + #[serde(rename = "outcome", skip_serializing_if = "Option::is_none")] + pub outcome: Option, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + account_sid: None, + message_sid: None, + outcome: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_new_key.rs b/twil-api/src/models/api_period_v2010_period_account_period_new_key.rs new file mode 100644 index 0000000..16064cf --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_new_key.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNewKey { + /// The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** + #[serde(rename = "secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secret: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNewKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNewKey { + ApiPeriodV2010PeriodAccountPeriodNewKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + secret: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_new_signing_key.rs b/twil-api/src/models/api_period_v2010_period_account_period_new_signing_key.rs new file mode 100644 index 0000000..db37308 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_new_signing_key.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + /// The unique string that that we created to identify the NewSigningKey resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** + #[serde(rename = "secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secret: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + secret: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_notification.rs b/twil-api/src/models/api_period_v2010_period_account_period_notification.rs new file mode 100644 index 0000000..4238c9c --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_notification.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNotification { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The unique string that that we created to identify the Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNotification { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNotification { + ApiPeriodV2010PeriodAccountPeriodNotification { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_notification_instance.rs b/twil-api/src/models/api_period_v2010_period_account_period_notification_instance.rs new file mode 100644 index 0000000..0f25ce7 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_notification_instance.rs @@ -0,0 +1,115 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. + #[serde(rename = "request_variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_variables: Option>, + /// The HTTP body returned by your server. + #[serde(rename = "response_body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_body: Option>, + /// The HTTP headers returned by your server. + #[serde(rename = "response_headers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_headers: Option>, + /// The unique string that that we created to identify the Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + request_variables: None, + response_body: None, + response_headers: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs b/twil-api/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs new file mode 100644 index 0000000..2b0e72b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + /// The unique string that that we created to identify the OutgoingCallerId resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + account_sid: None, + phone_number: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_queue.rs b/twil-api/src/models/api_period_v2010_period_account_period_queue.rs new file mode 100644 index 0000000..8d799de --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_queue.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodQueue { + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The number of calls currently in the queue. + #[serde(rename = "current_size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub current_size: Option>, + /// A string that you assigned to describe this resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The average wait time in seconds of the members in this queue. This is calculated at the time of the request. + #[serde(rename = "average_wait_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub average_wait_time: Option>, + /// The unique string that that we created to identify this Queue resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000. + #[serde(rename = "max_size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_size: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodQueue { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodQueue { + ApiPeriodV2010PeriodAccountPeriodQueue { + date_updated: None, + current_size: None, + friendly_name: None, + uri: None, + account_sid: None, + average_wait_time: None, + sid: None, + date_created: None, + max_size: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_queue_period_member.rs b/twil-api/src/models/api_period_v2010_period_account_period_queue_period_member.rs new file mode 100644 index 0000000..b8b8330 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_queue_period_member.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Member resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date that the member was enqueued, given in RFC 2822 format. + #[serde(rename = "date_enqueued", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_enqueued: Option>, + /// This member's current position in the queue. + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The number of seconds the member has been in the queue. + #[serde(rename = "wait_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub wait_time: Option>, + /// The SID of the Queue the member is in. + #[serde(rename = "queue_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub queue_sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + call_sid: None, + date_enqueued: None, + position: None, + uri: None, + wait_time: None, + queue_sid: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_recording.rs b/twil-api/src/models/api_period_v2010_period_account_period_recording.rs new file mode 100644 index 0000000..ff6c90b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_recording.rs @@ -0,0 +1,99 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used during the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. This will always refer to the parent leg of a two-leg call. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording, if a conference recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call). + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URL of the media file associated with this recording resource. When stored externally, this is the full URL location of the media file. + #[serde(rename = "media_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub media_url: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecording { + ApiPeriodV2010PeriodAccountPeriodRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + uri: None, + encryption_details: None, + subresource_uris: None, + media_url: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs new file mode 100644 index 0000000..50b2091 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs @@ -0,0 +1,64 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + /// The unique string that that we created to identify the Recording AddOnResult resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The SID of the Add-on to which the result belongs. + #[serde(rename = "add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_sid: Option>, + /// The SID of the Add-on configuration. + #[serde(rename = "add_on_configuration_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_configuration_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The date and time in GMT that the result was completed specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_completed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_completed: Option>, + /// The SID of the recording to which the AddOnResult resource belongs. + #[serde(rename = "reference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reference_sid: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + sid: None, + account_sid: None, + status: None, + add_on_sid: None, + add_on_configuration_sid: None, + date_created: None, + date_updated: None, + date_completed: None, + reference_sid: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs new file mode 100644 index 0000000..4585f08 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs @@ -0,0 +1,69 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + /// The unique string that that we created to identify the Recording AddOnResult Payload resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the AddOnResult to which the payload belongs. + #[serde(rename = "add_on_result_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_result_sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The string provided by the vendor that describes the payload. + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + /// The SID of the Add-on to which the result belongs. + #[serde(rename = "add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_sid: Option>, + /// The SID of the Add-on configuration. + #[serde(rename = "add_on_configuration_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_configuration_sid: Option>, + /// The MIME type of the payload. + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID of the recording to which the AddOnResult resource that contains the payload belongs. + #[serde(rename = "reference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reference_sid: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + sid: None, + add_on_result_sid: None, + account_sid: None, + label: None, + add_on_sid: None, + add_on_configuration_sid: None, + content_type: None, + date_created: None, + date_updated: None, + reference_sid: None, + subresource_uris: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs new file mode 100644 index 0000000..682114b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the transcription. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The duration of the transcribed audio in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. + #[serde(rename = "recording_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub recording_sid: Option>, + /// The unique string that that we created to identify the Transcription resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The text content of the transcription. + #[serde(rename = "transcription_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub transcription_text: Option>, + /// The transcription type. + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + duration: None, + price: None, + price_unit: None, + recording_sid: None, + sid: None, + status: None, + transcription_text: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_short_code.rs b/twil-api/src/models/api_period_v2010_period_account_period_short_code.rs new file mode 100644 index 0000000..dd92e4b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_short_code.rs @@ -0,0 +1,117 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodShortCode { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to start a new TwiML session when an SMS message is sent to this short code. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The short code. e.g., 894546. + #[serde(rename = "short_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub short_code: Option>, + /// The unique string that that we created to identify this ShortCode resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when receiving an incoming SMS message to this short code. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodShortCode { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodShortCode { + ApiPeriodV2010PeriodAccountPeriodShortCode { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + friendly_name: None, + short_code: None, + sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + uri: None, + } + } +} + +/// The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_signing_key.rs b/twil-api/src/models/api_period_v2010_period_account_period_signing_key.rs new file mode 100644 index 0000000..c6d3328 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_signing_key.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSigningKey { + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSigningKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSigningKey { + ApiPeriodV2010PeriodAccountPeriodSigningKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs new file mode 100644 index 0000000..f8c9942 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A human readable descriptive text that describes the CredentialList, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// A list of credentials associated with this credential list. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI for this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + subresource_uris: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs new file mode 100644 index 0000000..c5880cb --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The unique id that identifies the credential list that includes this credential. + #[serde(rename = "credential_list_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub credential_list_sid: Option>, + /// The username for this credential. + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + sid: None, + account_sid: None, + credential_list_sid: None, + username: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs new file mode 100644 index 0000000..91aea5b --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs @@ -0,0 +1,175 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to process the call. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The types of authentication you have mapped to your domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If you have both defined for your domain, both will be returned in a comma delimited string. If `auth_type` is not defined, the domain will not be able to receive any traffic. + #[serde(rename = "auth_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub auth_type: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\" and must end with `sip.twilio.com`. + #[serde(rename = "domain_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_name: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the SipDomain resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. + #[serde(rename = "voice_status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_status_callback_method: Option>, + /// The URL that we call to pass status parameters (such as call ended) to your application. + #[serde(rename = "voice_status_callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_status_callback_url: Option>, + /// The URL we call using the `voice_method` when the domain receives a call. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// A list of mapping resources associated with the SIP Domain resource identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// Whether to allow SIP Endpoints to register with the domain to receive calls. + #[serde(rename = "sip_registration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sip_registration: Option>, + /// Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + #[serde(rename = "emergency_calling_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_calling_enabled: Option>, + /// Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. + #[serde(rename = "secure", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secure: Option>, + /// The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + #[serde(rename = "byoc_trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub byoc_trunk_sid: Option>, + /// Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. + #[serde(rename = "emergency_caller_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_caller_sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + account_sid: None, + api_version: None, + auth_type: None, + date_created: None, + date_updated: None, + domain_name: None, + friendly_name: None, + sid: None, + uri: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_status_callback_method: None, + voice_status_callback_url: None, + voice_url: None, + subresource_uris: None, + sip_registration: None, + emergency_calling_enabled: None, + secure: None, + byoc_trunk_sid: None, + emergency_caller_sid: None, + } + } +} + +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceStatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceStatusCallbackMethod { + fn default() -> VoiceStatusCallbackMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs new file mode 100644 index 0000000..c68c36d --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the CredentialListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs new file mode 100644 index 0000000..4b47378 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the IpAccessControlListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs new file mode 100644 index 0000000..91399f9 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the CredentialListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs new file mode 100644 index 0000000..bd70f43 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that is created to identify the SipDomain resource. + #[serde(rename = "domain_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_sid: Option>, + /// A human readable descriptive text for this resource, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + domain_sid: None, + friendly_name: None, + sid: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs new file mode 100644 index 0000000..19f5513 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that is created to identify the SipDomain resource. + #[serde(rename = "domain_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_sid: Option>, + /// A human readable descriptive text for this resource, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + account_sid: None, + date_created: None, + date_updated: None, + domain_sid: None, + friendly_name: None, + sid: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs new file mode 100644 index 0000000..db0b873 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A human readable descriptive text, up to 255 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A list of the IpAddress resources associated with this IP access control list resource. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + sid: None, + account_sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + subresource_uris: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs new file mode 100644 index 0000000..ace1de5 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A human readable descriptive text for this resource, up to 255 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. + #[serde(rename = "ip_address", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_address: Option>, + /// An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. + #[serde(rename = "cidr_prefix_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cidr_prefix_length: Option>, + /// The unique id of the IpAccessControlList resource that includes this resource. + #[serde(rename = "ip_access_control_list_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_access_control_list_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + sid: None, + account_sid: None, + friendly_name: None, + ip_address: None, + cidr_prefix_length: None, + ip_access_control_list_sid: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_token.rs b/twil-api/src/models/api_period_v2010_period_account_period_token.rs new file mode 100644 index 0000000..ca6a109 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_token.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodToken { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// An array representing the ephemeral credentials and the STUN and TURN server URIs. + #[serde(rename = "ice_servers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ice_servers: Option>>, + /// The temporary password that the username will use when authenticating with Twilio. + #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub password: Option>, + /// The duration in seconds for which the username and password are valid. + #[serde(rename = "ttl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ttl: Option>, + /// The temporary username that uniquely identifies a Token. + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodToken { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodToken { + ApiPeriodV2010PeriodAccountPeriodToken { + account_sid: None, + date_created: None, + date_updated: None, + ice_servers: None, + password: None, + ttl: None, + username: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_transcription.rs b/twil-api/src/models/api_period_v2010_period_account_period_transcription.rs new file mode 100644 index 0000000..0d2c117 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_transcription.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodTranscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the transcription. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The duration of the transcribed audio in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. + #[serde(rename = "recording_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub recording_sid: Option>, + /// The unique string that that we created to identify the Transcription resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The text content of the transcription. + #[serde(rename = "transcription_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub transcription_text: Option>, + /// The transcription type. Can only be: `fast`. + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodTranscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodTranscription { + ApiPeriodV2010PeriodAccountPeriodTranscription { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + duration: None, + price: None, + price_unit: None, + recording_sid: None, + sid: None, + status: None, + transcription_text: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs new file mode 100644 index 0000000..94fdd58 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs new file mode 100644 index 0000000..111d436 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs new file mode 100644 index 0000000..7f2fec0 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs new file mode 100644 index 0000000..22b9dc0 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs new file mode 100644 index 0000000..6975aaa --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs new file mode 100644 index 0000000..75dc5b5 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs new file mode 100644 index 0000000..c3747fb --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs new file mode 100644 index 0000000..b0ab6fd --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs new file mode 100644 index 0000000..2b50037 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs new file mode 100644 index 0000000..c2d955a --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs @@ -0,0 +1,108 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. + #[serde(rename = "callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub callback_method: Option>, + /// The URL we call using the `callback_method` when the trigger fires. + #[serde(rename = "callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub callback_url: Option>, + /// The current value of the field the trigger is watching. + #[serde(rename = "current_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub current_value: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_fired", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_fired: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the trigger. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + #[serde(rename = "recurring", skip_serializing_if = "Option::is_none")] + pub recurring: Option, + /// The unique string that that we created to identify the UsageTrigger resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "trigger_by", skip_serializing_if = "Option::is_none")] + pub trigger_by: Option, + /// The value at which the trigger will fire. Must be a positive, numeric value. + #[serde(rename = "trigger_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_value: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "usage_category", skip_serializing_if = "Option::is_none")] + pub usage_category: Option, + /// The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. + #[serde(rename = "usage_record_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_record_uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + account_sid: None, + api_version: None, + callback_method: None, + callback_url: None, + current_value: None, + date_created: None, + date_fired: None, + date_updated: None, + friendly_name: None, + recurring: None, + sid: None, + trigger_by: None, + trigger_value: None, + uri: None, + usage_category: None, + usage_record_uri: None, + } + } +} + +/// The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for CallbackMethod { + fn default() -> CallbackMethod { + Self::Head + } +} + diff --git a/twil-api/src/models/api_period_v2010_period_account_period_validation_request.rs b/twil-api/src/models/api_period_v2010_period_account_period_validation_request.rs new file mode 100644 index 0000000..1a37d12 --- /dev/null +++ b/twil-api/src/models/api_period_v2010_period_account_period_validation_request.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodValidationRequest { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the Caller ID. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The 6 digit validation code that someone must enter to validate the Caller ID when `phone_number` is called. + #[serde(rename = "validation_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub validation_code: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodValidationRequest { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodValidationRequest { + ApiPeriodV2010PeriodAccountPeriodValidationRequest { + account_sid: None, + call_sid: None, + friendly_name: None, + phone_number: None, + validation_code: None, + } + } +} + + diff --git a/twil-api/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs b/twil-api/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs new file mode 100644 index 0000000..0399546 --- /dev/null +++ b/twil-api/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + +/// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities : The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + #[serde(rename = "mms", skip_serializing_if = "Option::is_none")] + pub mms: Option, + #[serde(rename = "sms", skip_serializing_if = "Option::is_none")] + pub sms: Option, + #[serde(rename = "voice", skip_serializing_if = "Option::is_none")] + pub voice: Option, + #[serde(rename = "fax", skip_serializing_if = "Option::is_none")] + pub fax: Option, +} + +impl ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + /// The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + pub fn new() -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + mms: None, + sms: None, + voice: None, + fax: None, + } + } +} + + diff --git a/twil-api/src/models/api_v2010_account_incoming_phone_number_capabilities.rs b/twil-api/src/models/api_v2010_account_incoming_phone_number_capabilities.rs new file mode 100644 index 0000000..4763521 --- /dev/null +++ b/twil-api/src/models/api_v2010_account_incoming_phone_number_capabilities.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + +/// ApiV2010AccountIncomingPhoneNumberCapabilities : The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiV2010AccountIncomingPhoneNumberCapabilities { + #[serde(rename = "mms", skip_serializing_if = "Option::is_none")] + pub mms: Option, + #[serde(rename = "sms", skip_serializing_if = "Option::is_none")] + pub sms: Option, + #[serde(rename = "voice", skip_serializing_if = "Option::is_none")] + pub voice: Option, + #[serde(rename = "fax", skip_serializing_if = "Option::is_none")] + pub fax: Option, +} + +impl ApiV2010AccountIncomingPhoneNumberCapabilities { + /// The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + pub fn new() -> ApiV2010AccountIncomingPhoneNumberCapabilities { + ApiV2010AccountIncomingPhoneNumberCapabilities { + mms: None, + sms: None, + voice: None, + fax: None, + } + } +} + + diff --git a/twil-api/src/models/api_v2010_account_token_ice_servers_inner.rs b/twil-api/src/models/api_v2010_account_token_ice_servers_inner.rs new file mode 100644 index 0000000..ac6f945 --- /dev/null +++ b/twil-api/src/models/api_v2010_account_token_ice_servers_inner.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ApiV2010AccountTokenIceServersInner { + #[serde(rename = "credential", skip_serializing_if = "Option::is_none")] + pub credential: Option, + #[serde(rename = "username", skip_serializing_if = "Option::is_none")] + pub username: Option, + #[serde(rename = "url", skip_serializing_if = "Option::is_none")] + pub url: Option, + #[serde(rename = "urls", skip_serializing_if = "Option::is_none")] + pub urls: Option, +} + +impl ApiV2010AccountTokenIceServersInner { + pub fn new() -> ApiV2010AccountTokenIceServersInner { + ApiV2010AccountTokenIceServersInner { + credential: None, + username: None, + url: None, + urls: None, + } + } +} + + diff --git a/twil-api/src/models/authorized_connect_app_enum_permission.rs b/twil-api/src/models/authorized_connect_app_enum_permission.rs new file mode 100644 index 0000000..29913ab --- /dev/null +++ b/twil-api/src/models/authorized_connect_app_enum_permission.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AuthorizedConnectAppEnumPermission { + #[serde(rename = "get-all")] + GetAll, + #[serde(rename = "post-all")] + PostAll, + +} + +impl ToString for AuthorizedConnectAppEnumPermission { + fn to_string(&self) -> String { + match self { + Self::GetAll => String::from("get-all"), + Self::PostAll => String::from("post-all"), + } + } +} + +impl Default for AuthorizedConnectAppEnumPermission { + fn default() -> AuthorizedConnectAppEnumPermission { + Self::GetAll + } +} + + + + diff --git a/twil-api/src/models/call_enum_event.rs b/twil-api/src/models/call_enum_event.rs new file mode 100644 index 0000000..1823e46 --- /dev/null +++ b/twil-api/src/models/call_enum_event.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallEnumEvent { + #[serde(rename = "initiated")] + Initiated, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "answered")] + Answered, + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for CallEnumEvent { + fn to_string(&self) -> String { + match self { + Self::Initiated => String::from("initiated"), + Self::Ringing => String::from("ringing"), + Self::Answered => String::from("answered"), + Self::Completed => String::from("completed"), + } + } +} + +impl Default for CallEnumEvent { + fn default() -> CallEnumEvent { + Self::Initiated + } +} + + + + diff --git a/twil-api/src/models/call_enum_status.rs b/twil-api/src/models/call_enum_status.rs new file mode 100644 index 0000000..6af0873 --- /dev/null +++ b/twil-api/src/models/call_enum_status.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "busy")] + Busy, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "no-answer")] + NoAnswer, + #[serde(rename = "canceled")] + Canceled, + +} + +impl ToString for CallEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Ringing => String::from("ringing"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Busy => String::from("busy"), + Self::Failed => String::from("failed"), + Self::NoAnswer => String::from("no-answer"), + Self::Canceled => String::from("canceled"), + } + } +} + +impl Default for CallEnumStatus { + fn default() -> CallEnumStatus { + Self::Queued + } +} + + + + diff --git a/twil-api/src/models/call_feedback_enum_issues.rs b/twil-api/src/models/call_feedback_enum_issues.rs new file mode 100644 index 0000000..024c393 --- /dev/null +++ b/twil-api/src/models/call_feedback_enum_issues.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallFeedbackEnumIssues { + #[serde(rename = "audio-latency")] + AudioLatency, + #[serde(rename = "digits-not-captured")] + DigitsNotCaptured, + #[serde(rename = "dropped-call")] + DroppedCall, + #[serde(rename = "imperfect-audio")] + ImperfectAudio, + #[serde(rename = "incorrect-caller-id")] + IncorrectCallerId, + #[serde(rename = "one-way-audio")] + OneWayAudio, + #[serde(rename = "post-dial-delay")] + PostDialDelay, + #[serde(rename = "unsolicited-call")] + UnsolicitedCall, + +} + +impl ToString for CallFeedbackEnumIssues { + fn to_string(&self) -> String { + match self { + Self::AudioLatency => String::from("audio-latency"), + Self::DigitsNotCaptured => String::from("digits-not-captured"), + Self::DroppedCall => String::from("dropped-call"), + Self::ImperfectAudio => String::from("imperfect-audio"), + Self::IncorrectCallerId => String::from("incorrect-caller-id"), + Self::OneWayAudio => String::from("one-way-audio"), + Self::PostDialDelay => String::from("post-dial-delay"), + Self::UnsolicitedCall => String::from("unsolicited-call"), + } + } +} + +impl Default for CallFeedbackEnumIssues { + fn default() -> CallFeedbackEnumIssues { + Self::AudioLatency + } +} + + + + diff --git a/twil-api/src/models/call_feedback_summary_enum_status.rs b/twil-api/src/models/call_feedback_summary_enum_status.rs new file mode 100644 index 0000000..e7a2c1a --- /dev/null +++ b/twil-api/src/models/call_feedback_summary_enum_status.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallFeedbackSummaryEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for CallFeedbackSummaryEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for CallFeedbackSummaryEnumStatus { + fn default() -> CallFeedbackSummaryEnumStatus { + Self::Queued + } +} + + + + diff --git a/twil-api/src/models/call_recording_enum_source.rs b/twil-api/src/models/call_recording_enum_source.rs new file mode 100644 index 0000000..a9350d6 --- /dev/null +++ b/twil-api/src/models/call_recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallRecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for CallRecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for CallRecordingEnumSource { + fn default() -> CallRecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/twil-api/src/models/call_recording_enum_status.rs b/twil-api/src/models/call_recording_enum_status.rs new file mode 100644 index 0000000..08d93fe --- /dev/null +++ b/twil-api/src/models/call_recording_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallRecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + +} + +impl ToString for CallRecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + } + } +} + +impl Default for CallRecordingEnumStatus { + fn default() -> CallRecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/conference_enum_reason_conference_ended.rs b/twil-api/src/models/conference_enum_reason_conference_ended.rs new file mode 100644 index 0000000..ad31304 --- /dev/null +++ b/twil-api/src/models/conference_enum_reason_conference_ended.rs @@ -0,0 +1,48 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceEnumReasonConferenceEnded { + #[serde(rename = "conference-ended-via-api")] + ConferenceEndedViaApi, + #[serde(rename = "participant-with-end-conference-on-exit-left")] + ParticipantWithEndConferenceOnExitLeft, + #[serde(rename = "participant-with-end-conference-on-exit-kicked")] + ParticipantWithEndConferenceOnExitKicked, + #[serde(rename = "last-participant-kicked")] + LastParticipantKicked, + #[serde(rename = "last-participant-left")] + LastParticipantLeft, + +} + +impl ToString for ConferenceEnumReasonConferenceEnded { + fn to_string(&self) -> String { + match self { + Self::ConferenceEndedViaApi => String::from("conference-ended-via-api"), + Self::ParticipantWithEndConferenceOnExitLeft => String::from("participant-with-end-conference-on-exit-left"), + Self::ParticipantWithEndConferenceOnExitKicked => String::from("participant-with-end-conference-on-exit-kicked"), + Self::LastParticipantKicked => String::from("last-participant-kicked"), + Self::LastParticipantLeft => String::from("last-participant-left"), + } + } +} + +impl Default for ConferenceEnumReasonConferenceEnded { + fn default() -> ConferenceEnumReasonConferenceEnded { + Self::ConferenceEndedViaApi + } +} + + + + diff --git a/twil-api/src/models/conference_enum_status.rs b/twil-api/src/models/conference_enum_status.rs new file mode 100644 index 0000000..8a9c1c2 --- /dev/null +++ b/twil-api/src/models/conference_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceEnumStatus { + #[serde(rename = "init")] + Init, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for ConferenceEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Init => String::from("init"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + } + } +} + +impl Default for ConferenceEnumStatus { + fn default() -> ConferenceEnumStatus { + Self::Init + } +} + + + + diff --git a/twil-api/src/models/conference_recording_enum_source.rs b/twil-api/src/models/conference_recording_enum_source.rs new file mode 100644 index 0000000..093d646 --- /dev/null +++ b/twil-api/src/models/conference_recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceRecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for ConferenceRecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for ConferenceRecordingEnumSource { + fn default() -> ConferenceRecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/twil-api/src/models/conference_recording_enum_status.rs b/twil-api/src/models/conference_recording_enum_status.rs new file mode 100644 index 0000000..362afd5 --- /dev/null +++ b/twil-api/src/models/conference_recording_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceRecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + +} + +impl ToString for ConferenceRecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + } + } +} + +impl Default for ConferenceRecordingEnumStatus { + fn default() -> ConferenceRecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/connect_app_enum_permission.rs b/twil-api/src/models/connect_app_enum_permission.rs new file mode 100644 index 0000000..0361cfc --- /dev/null +++ b/twil-api/src/models/connect_app_enum_permission.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConnectAppEnumPermission { + #[serde(rename = "get-all")] + GetAll, + #[serde(rename = "post-all")] + PostAll, + +} + +impl ToString for ConnectAppEnumPermission { + fn to_string(&self) -> String { + match self { + Self::GetAll => String::from("get-all"), + Self::PostAll => String::from("post-all"), + } + } +} + +impl Default for ConnectAppEnumPermission { + fn default() -> ConnectAppEnumPermission { + Self::GetAll + } +} + + + + diff --git a/twil-api/src/models/dependent_phone_number_enum_address_requirement.rs b/twil-api/src/models/dependent_phone_number_enum_address_requirement.rs new file mode 100644 index 0000000..83bbba4 --- /dev/null +++ b/twil-api/src/models/dependent_phone_number_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DependentPhoneNumberEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for DependentPhoneNumberEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for DependentPhoneNumberEnumAddressRequirement { + fn default() -> DependentPhoneNumberEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/twil-api/src/models/dependent_phone_number_enum_emergency_status.rs b/twil-api/src/models/dependent_phone_number_enum_emergency_status.rs new file mode 100644 index 0000000..4dba1bd --- /dev/null +++ b/twil-api/src/models/dependent_phone_number_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DependentPhoneNumberEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for DependentPhoneNumberEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for DependentPhoneNumberEnumEmergencyStatus { + fn default() -> DependentPhoneNumberEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_enum_address_requirement.rs b/twil-api/src/models/incoming_phone_number_enum_address_requirement.rs new file mode 100644 index 0000000..0ccdbf3 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberEnumAddressRequirement { + fn default() -> IncomingPhoneNumberEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_enum_emergency_address_status.rs b/twil-api/src/models/incoming_phone_number_enum_emergency_address_status.rs new file mode 100644 index 0000000..4834b84 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_enum_emergency_status.rs b/twil-api/src/models/incoming_phone_number_enum_emergency_status.rs new file mode 100644 index 0000000..b8810be --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_enum_voice_receive_mode.rs b/twil-api/src/models/incoming_phone_number_enum_voice_receive_mode.rs new file mode 100644 index 0000000..17333bb --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_local_enum_address_requirement.rs b/twil-api/src/models/incoming_phone_number_local_enum_address_requirement.rs new file mode 100644 index 0000000..36257bb --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_local_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberLocalEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumAddressRequirement { + fn default() -> IncomingPhoneNumberLocalEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_local_enum_emergency_address_status.rs b/twil-api/src/models/incoming_phone_number_local_enum_emergency_address_status.rs new file mode 100644 index 0000000..6601ec3 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_local_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_local_enum_emergency_status.rs b/twil-api/src/models/incoming_phone_number_local_enum_emergency_status.rs new file mode 100644 index 0000000..1fa9c66 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_local_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberLocalEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberLocalEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs b/twil-api/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs new file mode 100644 index 0000000..e1b16f0 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberLocalEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberLocalEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_mobile_enum_address_requirement.rs b/twil-api/src/models/incoming_phone_number_mobile_enum_address_requirement.rs new file mode 100644 index 0000000..1226eba --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_mobile_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberMobileEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumAddressRequirement { + fn default() -> IncomingPhoneNumberMobileEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs b/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs new file mode 100644 index 0000000..adddebb --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_status.rs b/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_status.rs new file mode 100644 index 0000000..59f42d4 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_mobile_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberMobileEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberMobileEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs b/twil-api/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs new file mode 100644 index 0000000..faa81c0 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberMobileEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberMobileEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs b/twil-api/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs new file mode 100644 index 0000000..835f29a --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumAddressRequirement { + fn default() -> IncomingPhoneNumberTollFreeEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs b/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs new file mode 100644 index 0000000..9ce04b6 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs b/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs new file mode 100644 index 0000000..1f1a268 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberTollFreeEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/twil-api/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs b/twil-api/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs new file mode 100644 index 0000000..8812b55 --- /dev/null +++ b/twil-api/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/twil-api/src/models/list_account_response.rs b/twil-api/src/models/list_account_response.rs new file mode 100644 index 0000000..da16a3a --- /dev/null +++ b/twil-api/src/models/list_account_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAccountResponse { + #[serde(rename = "accounts", skip_serializing_if = "Option::is_none")] + pub accounts: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAccountResponse { + pub fn new() -> ListAccountResponse { + ListAccountResponse { + accounts: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_address_response.rs b/twil-api/src/models/list_address_response.rs new file mode 100644 index 0000000..827578a --- /dev/null +++ b/twil-api/src/models/list_address_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAddressResponse { + #[serde(rename = "addresses", skip_serializing_if = "Option::is_none")] + pub addresses: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAddressResponse { + pub fn new() -> ListAddressResponse { + ListAddressResponse { + addresses: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_application_response.rs b/twil-api/src/models/list_application_response.rs new file mode 100644 index 0000000..f465156 --- /dev/null +++ b/twil-api/src/models/list_application_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListApplicationResponse { + #[serde(rename = "applications", skip_serializing_if = "Option::is_none")] + pub applications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListApplicationResponse { + pub fn new() -> ListApplicationResponse { + ListApplicationResponse { + applications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_authorized_connect_app_response.rs b/twil-api/src/models/list_authorized_connect_app_response.rs new file mode 100644 index 0000000..f957b4d --- /dev/null +++ b/twil-api/src/models/list_authorized_connect_app_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAuthorizedConnectAppResponse { + #[serde(rename = "authorized_connect_apps", skip_serializing_if = "Option::is_none")] + pub authorized_connect_apps: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAuthorizedConnectAppResponse { + pub fn new() -> ListAuthorizedConnectAppResponse { + ListAuthorizedConnectAppResponse { + authorized_connect_apps: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_country_response.rs b/twil-api/src/models/list_available_phone_number_country_response.rs new file mode 100644 index 0000000..e5f7723 --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_country_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberCountryResponse { + #[serde(rename = "countries", skip_serializing_if = "Option::is_none")] + pub countries: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberCountryResponse { + pub fn new() -> ListAvailablePhoneNumberCountryResponse { + ListAvailablePhoneNumberCountryResponse { + countries: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_local_response.rs b/twil-api/src/models/list_available_phone_number_local_response.rs new file mode 100644 index 0000000..9794db2 --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_local_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberLocalResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberLocalResponse { + pub fn new() -> ListAvailablePhoneNumberLocalResponse { + ListAvailablePhoneNumberLocalResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_machine_to_machine_response.rs b/twil-api/src/models/list_available_phone_number_machine_to_machine_response.rs new file mode 100644 index 0000000..3ab098b --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_machine_to_machine_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberMachineToMachineResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberMachineToMachineResponse { + pub fn new() -> ListAvailablePhoneNumberMachineToMachineResponse { + ListAvailablePhoneNumberMachineToMachineResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_mobile_response.rs b/twil-api/src/models/list_available_phone_number_mobile_response.rs new file mode 100644 index 0000000..f112f42 --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_mobile_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberMobileResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberMobileResponse { + pub fn new() -> ListAvailablePhoneNumberMobileResponse { + ListAvailablePhoneNumberMobileResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_national_response.rs b/twil-api/src/models/list_available_phone_number_national_response.rs new file mode 100644 index 0000000..c2a5a2e --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_national_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberNationalResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberNationalResponse { + pub fn new() -> ListAvailablePhoneNumberNationalResponse { + ListAvailablePhoneNumberNationalResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_shared_cost_response.rs b/twil-api/src/models/list_available_phone_number_shared_cost_response.rs new file mode 100644 index 0000000..5fa19c6 --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_shared_cost_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberSharedCostResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberSharedCostResponse { + pub fn new() -> ListAvailablePhoneNumberSharedCostResponse { + ListAvailablePhoneNumberSharedCostResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_toll_free_response.rs b/twil-api/src/models/list_available_phone_number_toll_free_response.rs new file mode 100644 index 0000000..e01f75c --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_toll_free_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberTollFreeResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberTollFreeResponse { + pub fn new() -> ListAvailablePhoneNumberTollFreeResponse { + ListAvailablePhoneNumberTollFreeResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_available_phone_number_voip_response.rs b/twil-api/src/models/list_available_phone_number_voip_response.rs new file mode 100644 index 0000000..085ec42 --- /dev/null +++ b/twil-api/src/models/list_available_phone_number_voip_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberVoipResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberVoipResponse { + pub fn new() -> ListAvailablePhoneNumberVoipResponse { + ListAvailablePhoneNumberVoipResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_call_event_response.rs b/twil-api/src/models/list_call_event_response.rs new file mode 100644 index 0000000..bde1cd7 --- /dev/null +++ b/twil-api/src/models/list_call_event_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListCallEventResponse { + #[serde(rename = "events", skip_serializing_if = "Option::is_none")] + pub events: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallEventResponse { + pub fn new() -> ListCallEventResponse { + ListCallEventResponse { + events: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_call_notification_response.rs b/twil-api/src/models/list_call_notification_response.rs new file mode 100644 index 0000000..31890d8 --- /dev/null +++ b/twil-api/src/models/list_call_notification_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListCallNotificationResponse { + #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")] + pub notifications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallNotificationResponse { + pub fn new() -> ListCallNotificationResponse { + ListCallNotificationResponse { + notifications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_call_recording_response.rs b/twil-api/src/models/list_call_recording_response.rs new file mode 100644 index 0000000..59dfe31 --- /dev/null +++ b/twil-api/src/models/list_call_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListCallRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallRecordingResponse { + pub fn new() -> ListCallRecordingResponse { + ListCallRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_call_response.rs b/twil-api/src/models/list_call_response.rs new file mode 100644 index 0000000..507bd24 --- /dev/null +++ b/twil-api/src/models/list_call_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListCallResponse { + #[serde(rename = "calls", skip_serializing_if = "Option::is_none")] + pub calls: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallResponse { + pub fn new() -> ListCallResponse { + ListCallResponse { + calls: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_conference_recording_response.rs b/twil-api/src/models/list_conference_recording_response.rs new file mode 100644 index 0000000..39683f3 --- /dev/null +++ b/twil-api/src/models/list_conference_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListConferenceRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConferenceRecordingResponse { + pub fn new() -> ListConferenceRecordingResponse { + ListConferenceRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_conference_response.rs b/twil-api/src/models/list_conference_response.rs new file mode 100644 index 0000000..4c8df58 --- /dev/null +++ b/twil-api/src/models/list_conference_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListConferenceResponse { + #[serde(rename = "conferences", skip_serializing_if = "Option::is_none")] + pub conferences: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConferenceResponse { + pub fn new() -> ListConferenceResponse { + ListConferenceResponse { + conferences: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_connect_app_response.rs b/twil-api/src/models/list_connect_app_response.rs new file mode 100644 index 0000000..24bf3a7 --- /dev/null +++ b/twil-api/src/models/list_connect_app_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListConnectAppResponse { + #[serde(rename = "connect_apps", skip_serializing_if = "Option::is_none")] + pub connect_apps: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConnectAppResponse { + pub fn new() -> ListConnectAppResponse { + ListConnectAppResponse { + connect_apps: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_dependent_phone_number_response.rs b/twil-api/src/models/list_dependent_phone_number_response.rs new file mode 100644 index 0000000..b40ba58 --- /dev/null +++ b/twil-api/src/models/list_dependent_phone_number_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListDependentPhoneNumberResponse { + #[serde(rename = "dependent_phone_numbers", skip_serializing_if = "Option::is_none")] + pub dependent_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListDependentPhoneNumberResponse { + pub fn new() -> ListDependentPhoneNumberResponse { + ListDependentPhoneNumberResponse { + dependent_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs b/twil-api/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs new file mode 100644 index 0000000..393e711 --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + #[serde(rename = "extensions", skip_serializing_if = "Option::is_none")] + pub extensions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + pub fn new() -> ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + extensions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_assigned_add_on_response.rs b/twil-api/src/models/list_incoming_phone_number_assigned_add_on_response.rs new file mode 100644 index 0000000..42e763d --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_assigned_add_on_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberAssignedAddOnResponse { + #[serde(rename = "assigned_add_ons", skip_serializing_if = "Option::is_none")] + pub assigned_add_ons: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberAssignedAddOnResponse { + pub fn new() -> ListIncomingPhoneNumberAssignedAddOnResponse { + ListIncomingPhoneNumberAssignedAddOnResponse { + assigned_add_ons: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_local_response.rs b/twil-api/src/models/list_incoming_phone_number_local_response.rs new file mode 100644 index 0000000..219a070 --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_local_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberLocalResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberLocalResponse { + pub fn new() -> ListIncomingPhoneNumberLocalResponse { + ListIncomingPhoneNumberLocalResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_mobile_response.rs b/twil-api/src/models/list_incoming_phone_number_mobile_response.rs new file mode 100644 index 0000000..4b1eb3f --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_mobile_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberMobileResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberMobileResponse { + pub fn new() -> ListIncomingPhoneNumberMobileResponse { + ListIncomingPhoneNumberMobileResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_response.rs b/twil-api/src/models/list_incoming_phone_number_response.rs new file mode 100644 index 0000000..3239000 --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberResponse { + pub fn new() -> ListIncomingPhoneNumberResponse { + ListIncomingPhoneNumberResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_incoming_phone_number_toll_free_response.rs b/twil-api/src/models/list_incoming_phone_number_toll_free_response.rs new file mode 100644 index 0000000..2a8ccdd --- /dev/null +++ b/twil-api/src/models/list_incoming_phone_number_toll_free_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberTollFreeResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberTollFreeResponse { + pub fn new() -> ListIncomingPhoneNumberTollFreeResponse { + ListIncomingPhoneNumberTollFreeResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_key_response.rs b/twil-api/src/models/list_key_response.rs new file mode 100644 index 0000000..3410f54 --- /dev/null +++ b/twil-api/src/models/list_key_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListKeyResponse { + #[serde(rename = "keys", skip_serializing_if = "Option::is_none")] + pub keys: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListKeyResponse { + pub fn new() -> ListKeyResponse { + ListKeyResponse { + keys: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_media_response.rs b/twil-api/src/models/list_media_response.rs new file mode 100644 index 0000000..1484bd0 --- /dev/null +++ b/twil-api/src/models/list_media_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListMediaResponse { + #[serde(rename = "media_list", skip_serializing_if = "Option::is_none")] + pub media_list: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMediaResponse { + pub fn new() -> ListMediaResponse { + ListMediaResponse { + media_list: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_member_response.rs b/twil-api/src/models/list_member_response.rs new file mode 100644 index 0000000..a2d4a07 --- /dev/null +++ b/twil-api/src/models/list_member_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListMemberResponse { + #[serde(rename = "queue_members", skip_serializing_if = "Option::is_none")] + pub queue_members: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMemberResponse { + pub fn new() -> ListMemberResponse { + ListMemberResponse { + queue_members: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_message_response.rs b/twil-api/src/models/list_message_response.rs new file mode 100644 index 0000000..2c674e3 --- /dev/null +++ b/twil-api/src/models/list_message_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListMessageResponse { + #[serde(rename = "messages", skip_serializing_if = "Option::is_none")] + pub messages: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMessageResponse { + pub fn new() -> ListMessageResponse { + ListMessageResponse { + messages: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_notification_response.rs b/twil-api/src/models/list_notification_response.rs new file mode 100644 index 0000000..5beda0e --- /dev/null +++ b/twil-api/src/models/list_notification_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListNotificationResponse { + #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")] + pub notifications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListNotificationResponse { + pub fn new() -> ListNotificationResponse { + ListNotificationResponse { + notifications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_outgoing_caller_id_response.rs b/twil-api/src/models/list_outgoing_caller_id_response.rs new file mode 100644 index 0000000..cdca8bb --- /dev/null +++ b/twil-api/src/models/list_outgoing_caller_id_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListOutgoingCallerIdResponse { + #[serde(rename = "outgoing_caller_ids", skip_serializing_if = "Option::is_none")] + pub outgoing_caller_ids: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListOutgoingCallerIdResponse { + pub fn new() -> ListOutgoingCallerIdResponse { + ListOutgoingCallerIdResponse { + outgoing_caller_ids: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_participant_response.rs b/twil-api/src/models/list_participant_response.rs new file mode 100644 index 0000000..4c8fd12 --- /dev/null +++ b/twil-api/src/models/list_participant_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListParticipantResponse { + #[serde(rename = "participants", skip_serializing_if = "Option::is_none")] + pub participants: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListParticipantResponse { + pub fn new() -> ListParticipantResponse { + ListParticipantResponse { + participants: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_queue_response.rs b/twil-api/src/models/list_queue_response.rs new file mode 100644 index 0000000..86628ee --- /dev/null +++ b/twil-api/src/models/list_queue_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListQueueResponse { + #[serde(rename = "queues", skip_serializing_if = "Option::is_none")] + pub queues: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListQueueResponse { + pub fn new() -> ListQueueResponse { + ListQueueResponse { + queues: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_recording_add_on_result_payload_response.rs b/twil-api/src/models/list_recording_add_on_result_payload_response.rs new file mode 100644 index 0000000..0ed0b7c --- /dev/null +++ b/twil-api/src/models/list_recording_add_on_result_payload_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListRecordingAddOnResultPayloadResponse { + #[serde(rename = "payloads", skip_serializing_if = "Option::is_none")] + pub payloads: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingAddOnResultPayloadResponse { + pub fn new() -> ListRecordingAddOnResultPayloadResponse { + ListRecordingAddOnResultPayloadResponse { + payloads: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_recording_add_on_result_response.rs b/twil-api/src/models/list_recording_add_on_result_response.rs new file mode 100644 index 0000000..911ff99 --- /dev/null +++ b/twil-api/src/models/list_recording_add_on_result_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListRecordingAddOnResultResponse { + #[serde(rename = "add_on_results", skip_serializing_if = "Option::is_none")] + pub add_on_results: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingAddOnResultResponse { + pub fn new() -> ListRecordingAddOnResultResponse { + ListRecordingAddOnResultResponse { + add_on_results: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_recording_response.rs b/twil-api/src/models/list_recording_response.rs new file mode 100644 index 0000000..12b24bd --- /dev/null +++ b/twil-api/src/models/list_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingResponse { + pub fn new() -> ListRecordingResponse { + ListRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_recording_transcription_response.rs b/twil-api/src/models/list_recording_transcription_response.rs new file mode 100644 index 0000000..1c1dc93 --- /dev/null +++ b/twil-api/src/models/list_recording_transcription_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListRecordingTranscriptionResponse { + #[serde(rename = "transcriptions", skip_serializing_if = "Option::is_none")] + pub transcriptions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingTranscriptionResponse { + pub fn new() -> ListRecordingTranscriptionResponse { + ListRecordingTranscriptionResponse { + transcriptions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_short_code_response.rs b/twil-api/src/models/list_short_code_response.rs new file mode 100644 index 0000000..d0d7820 --- /dev/null +++ b/twil-api/src/models/list_short_code_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListShortCodeResponse { + #[serde(rename = "short_codes", skip_serializing_if = "Option::is_none")] + pub short_codes: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListShortCodeResponse { + pub fn new() -> ListShortCodeResponse { + ListShortCodeResponse { + short_codes: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_signing_key_response.rs b/twil-api/src/models/list_signing_key_response.rs new file mode 100644 index 0000000..be9d0f9 --- /dev/null +++ b/twil-api/src/models/list_signing_key_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSigningKeyResponse { + #[serde(rename = "signing_keys", skip_serializing_if = "Option::is_none")] + pub signing_keys: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSigningKeyResponse { + pub fn new() -> ListSigningKeyResponse { + ListSigningKeyResponse { + signing_keys: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_auth_calls_credential_list_mapping_response.rs b/twil-api/src/models/list_sip_auth_calls_credential_list_mapping_response.rs new file mode 100644 index 0000000..5ef2b5f --- /dev/null +++ b/twil-api/src/models/list_sip_auth_calls_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipAuthCallsCredentialListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthCallsCredentialListMappingResponse { + pub fn new() -> ListSipAuthCallsCredentialListMappingResponse { + ListSipAuthCallsCredentialListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs b/twil-api/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs new file mode 100644 index 0000000..3aa1ebf --- /dev/null +++ b/twil-api/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipAuthCallsIpAccessControlListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthCallsIpAccessControlListMappingResponse { + pub fn new() -> ListSipAuthCallsIpAccessControlListMappingResponse { + ListSipAuthCallsIpAccessControlListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs b/twil-api/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs new file mode 100644 index 0000000..ce6cd86 --- /dev/null +++ b/twil-api/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipAuthRegistrationsCredentialListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthRegistrationsCredentialListMappingResponse { + pub fn new() -> ListSipAuthRegistrationsCredentialListMappingResponse { + ListSipAuthRegistrationsCredentialListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_credential_list_mapping_response.rs b/twil-api/src/models/list_sip_credential_list_mapping_response.rs new file mode 100644 index 0000000..93f1223 --- /dev/null +++ b/twil-api/src/models/list_sip_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipCredentialListMappingResponse { + #[serde(rename = "credential_list_mappings", skip_serializing_if = "Option::is_none")] + pub credential_list_mappings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialListMappingResponse { + pub fn new() -> ListSipCredentialListMappingResponse { + ListSipCredentialListMappingResponse { + credential_list_mappings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_credential_list_response.rs b/twil-api/src/models/list_sip_credential_list_response.rs new file mode 100644 index 0000000..e592487 --- /dev/null +++ b/twil-api/src/models/list_sip_credential_list_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipCredentialListResponse { + #[serde(rename = "credential_lists", skip_serializing_if = "Option::is_none")] + pub credential_lists: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialListResponse { + pub fn new() -> ListSipCredentialListResponse { + ListSipCredentialListResponse { + credential_lists: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_credential_response.rs b/twil-api/src/models/list_sip_credential_response.rs new file mode 100644 index 0000000..d5af810 --- /dev/null +++ b/twil-api/src/models/list_sip_credential_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipCredentialResponse { + #[serde(rename = "credentials", skip_serializing_if = "Option::is_none")] + pub credentials: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialResponse { + pub fn new() -> ListSipCredentialResponse { + ListSipCredentialResponse { + credentials: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_domain_response.rs b/twil-api/src/models/list_sip_domain_response.rs new file mode 100644 index 0000000..b262e6d --- /dev/null +++ b/twil-api/src/models/list_sip_domain_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipDomainResponse { + #[serde(rename = "domains", skip_serializing_if = "Option::is_none")] + pub domains: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipDomainResponse { + pub fn new() -> ListSipDomainResponse { + ListSipDomainResponse { + domains: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_ip_access_control_list_mapping_response.rs b/twil-api/src/models/list_sip_ip_access_control_list_mapping_response.rs new file mode 100644 index 0000000..86d6cfa --- /dev/null +++ b/twil-api/src/models/list_sip_ip_access_control_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipIpAccessControlListMappingResponse { + #[serde(rename = "ip_access_control_list_mappings", skip_serializing_if = "Option::is_none")] + pub ip_access_control_list_mappings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAccessControlListMappingResponse { + pub fn new() -> ListSipIpAccessControlListMappingResponse { + ListSipIpAccessControlListMappingResponse { + ip_access_control_list_mappings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_ip_access_control_list_response.rs b/twil-api/src/models/list_sip_ip_access_control_list_response.rs new file mode 100644 index 0000000..3c9d2ed --- /dev/null +++ b/twil-api/src/models/list_sip_ip_access_control_list_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipIpAccessControlListResponse { + #[serde(rename = "ip_access_control_lists", skip_serializing_if = "Option::is_none")] + pub ip_access_control_lists: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAccessControlListResponse { + pub fn new() -> ListSipIpAccessControlListResponse { + ListSipIpAccessControlListResponse { + ip_access_control_lists: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_sip_ip_address_response.rs b/twil-api/src/models/list_sip_ip_address_response.rs new file mode 100644 index 0000000..e7b7e98 --- /dev/null +++ b/twil-api/src/models/list_sip_ip_address_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListSipIpAddressResponse { + #[serde(rename = "ip_addresses", skip_serializing_if = "Option::is_none")] + pub ip_addresses: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAddressResponse { + pub fn new() -> ListSipIpAddressResponse { + ListSipIpAddressResponse { + ip_addresses: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_transcription_response.rs b/twil-api/src/models/list_transcription_response.rs new file mode 100644 index 0000000..9475a9d --- /dev/null +++ b/twil-api/src/models/list_transcription_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListTranscriptionResponse { + #[serde(rename = "transcriptions", skip_serializing_if = "Option::is_none")] + pub transcriptions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListTranscriptionResponse { + pub fn new() -> ListTranscriptionResponse { + ListTranscriptionResponse { + transcriptions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_all_time_response.rs b/twil-api/src/models/list_usage_record_all_time_response.rs new file mode 100644 index 0000000..75f6f44 --- /dev/null +++ b/twil-api/src/models/list_usage_record_all_time_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordAllTimeResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordAllTimeResponse { + pub fn new() -> ListUsageRecordAllTimeResponse { + ListUsageRecordAllTimeResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_daily_response.rs b/twil-api/src/models/list_usage_record_daily_response.rs new file mode 100644 index 0000000..0f4586f --- /dev/null +++ b/twil-api/src/models/list_usage_record_daily_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordDailyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordDailyResponse { + pub fn new() -> ListUsageRecordDailyResponse { + ListUsageRecordDailyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_last_month_response.rs b/twil-api/src/models/list_usage_record_last_month_response.rs new file mode 100644 index 0000000..6a5b625 --- /dev/null +++ b/twil-api/src/models/list_usage_record_last_month_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordLastMonthResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordLastMonthResponse { + pub fn new() -> ListUsageRecordLastMonthResponse { + ListUsageRecordLastMonthResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_monthly_response.rs b/twil-api/src/models/list_usage_record_monthly_response.rs new file mode 100644 index 0000000..4ad0b21 --- /dev/null +++ b/twil-api/src/models/list_usage_record_monthly_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordMonthlyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordMonthlyResponse { + pub fn new() -> ListUsageRecordMonthlyResponse { + ListUsageRecordMonthlyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_response.rs b/twil-api/src/models/list_usage_record_response.rs new file mode 100644 index 0000000..b418613 --- /dev/null +++ b/twil-api/src/models/list_usage_record_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordResponse { + pub fn new() -> ListUsageRecordResponse { + ListUsageRecordResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_this_month_response.rs b/twil-api/src/models/list_usage_record_this_month_response.rs new file mode 100644 index 0000000..952e308 --- /dev/null +++ b/twil-api/src/models/list_usage_record_this_month_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordThisMonthResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordThisMonthResponse { + pub fn new() -> ListUsageRecordThisMonthResponse { + ListUsageRecordThisMonthResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_today_response.rs b/twil-api/src/models/list_usage_record_today_response.rs new file mode 100644 index 0000000..f1d6f0e --- /dev/null +++ b/twil-api/src/models/list_usage_record_today_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordTodayResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordTodayResponse { + pub fn new() -> ListUsageRecordTodayResponse { + ListUsageRecordTodayResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_yearly_response.rs b/twil-api/src/models/list_usage_record_yearly_response.rs new file mode 100644 index 0000000..279f03a --- /dev/null +++ b/twil-api/src/models/list_usage_record_yearly_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordYearlyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordYearlyResponse { + pub fn new() -> ListUsageRecordYearlyResponse { + ListUsageRecordYearlyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_record_yesterday_response.rs b/twil-api/src/models/list_usage_record_yesterday_response.rs new file mode 100644 index 0000000..d844103 --- /dev/null +++ b/twil-api/src/models/list_usage_record_yesterday_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageRecordYesterdayResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordYesterdayResponse { + pub fn new() -> ListUsageRecordYesterdayResponse { + ListUsageRecordYesterdayResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/list_usage_trigger_response.rs b/twil-api/src/models/list_usage_trigger_response.rs new file mode 100644 index 0000000..d109852 --- /dev/null +++ b/twil-api/src/models/list_usage_trigger_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListUsageTriggerResponse { + #[serde(rename = "usage_triggers", skip_serializing_if = "Option::is_none")] + pub usage_triggers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageTriggerResponse { + pub fn new() -> ListUsageTriggerResponse { + ListUsageTriggerResponse { + usage_triggers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/twil-api/src/models/message_enum_direction.rs b/twil-api/src/models/message_enum_direction.rs new file mode 100644 index 0000000..ae97a22 --- /dev/null +++ b/twil-api/src/models/message_enum_direction.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumDirection { + #[serde(rename = "inbound")] + Inbound, + #[serde(rename = "outbound-api")] + OutboundApi, + #[serde(rename = "outbound-call")] + OutboundCall, + #[serde(rename = "outbound-reply")] + OutboundReply, + +} + +impl ToString for MessageEnumDirection { + fn to_string(&self) -> String { + match self { + Self::Inbound => String::from("inbound"), + Self::OutboundApi => String::from("outbound-api"), + Self::OutboundCall => String::from("outbound-call"), + Self::OutboundReply => String::from("outbound-reply"), + } + } +} + +impl Default for MessageEnumDirection { + fn default() -> MessageEnumDirection { + Self::Inbound + } +} + + + + diff --git a/twil-api/src/models/message_enum_status.rs b/twil-api/src/models/message_enum_status.rs new file mode 100644 index 0000000..c821d69 --- /dev/null +++ b/twil-api/src/models/message_enum_status.rs @@ -0,0 +1,72 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "sending")] + Sending, + #[serde(rename = "sent")] + Sent, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "delivered")] + Delivered, + #[serde(rename = "undelivered")] + Undelivered, + #[serde(rename = "receiving")] + Receiving, + #[serde(rename = "received")] + Received, + #[serde(rename = "accepted")] + Accepted, + #[serde(rename = "scheduled")] + Scheduled, + #[serde(rename = "read")] + Read, + #[serde(rename = "partially_delivered")] + PartiallyDelivered, + #[serde(rename = "canceled")] + Canceled, + +} + +impl ToString for MessageEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Sending => String::from("sending"), + Self::Sent => String::from("sent"), + Self::Failed => String::from("failed"), + Self::Delivered => String::from("delivered"), + Self::Undelivered => String::from("undelivered"), + Self::Receiving => String::from("receiving"), + Self::Received => String::from("received"), + Self::Accepted => String::from("accepted"), + Self::Scheduled => String::from("scheduled"), + Self::Read => String::from("read"), + Self::PartiallyDelivered => String::from("partially_delivered"), + Self::Canceled => String::from("canceled"), + } + } +} + +impl Default for MessageEnumStatus { + fn default() -> MessageEnumStatus { + Self::Queued + } +} + + + + diff --git a/twil-api/src/models/message_enum_traffic_type.rs b/twil-api/src/models/message_enum_traffic_type.rs new file mode 100644 index 0000000..5ce7d72 --- /dev/null +++ b/twil-api/src/models/message_enum_traffic_type.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumTrafficType { + #[serde(rename = "free")] + Free, + +} + +impl ToString for MessageEnumTrafficType { + fn to_string(&self) -> String { + match self { + Self::Free => String::from("free"), + } + } +} + +impl Default for MessageEnumTrafficType { + fn default() -> MessageEnumTrafficType { + Self::Free + } +} + + + + diff --git a/twil-api/src/models/message_feedback_enum_outcome.rs b/twil-api/src/models/message_feedback_enum_outcome.rs new file mode 100644 index 0000000..d70c59e --- /dev/null +++ b/twil-api/src/models/message_feedback_enum_outcome.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageFeedbackEnumOutcome { + #[serde(rename = "confirmed")] + Confirmed, + #[serde(rename = "unconfirmed")] + Unconfirmed, + +} + +impl ToString for MessageFeedbackEnumOutcome { + fn to_string(&self) -> String { + match self { + Self::Confirmed => String::from("confirmed"), + Self::Unconfirmed => String::from("unconfirmed"), + } + } +} + +impl Default for MessageFeedbackEnumOutcome { + fn default() -> MessageFeedbackEnumOutcome { + Self::Confirmed + } +} + + + + diff --git a/twil-api/src/models/mod.rs b/twil-api/src/models/mod.rs new file mode 100644 index 0000000..19bdb66 --- /dev/null +++ b/twil-api/src/models/mod.rs @@ -0,0 +1,392 @@ +pub mod account_enum_status; +pub use self::account_enum_status::AccountEnumStatus; +pub mod account_enum_type; +pub use self::account_enum_type::AccountEnumType; +pub mod api_period_v2010_period_account; +pub use self::api_period_v2010_period_account::ApiPeriodV2010PeriodAccount; +pub mod api_period_v2010_period_account_period_address; +pub use self::api_period_v2010_period_account_period_address::ApiPeriodV2010PeriodAccountPeriodAddress; +pub mod api_period_v2010_period_account_period_address_period_dependent_phone_number; +pub use self::api_period_v2010_period_account_period_address_period_dependent_phone_number::ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber; +pub mod api_period_v2010_period_account_period_application; +pub use self::api_period_v2010_period_account_period_application::ApiPeriodV2010PeriodAccountPeriodApplication; +pub mod api_period_v2010_period_account_period_authorized_connect_app; +pub use self::api_period_v2010_period_account_period_authorized_connect_app::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp; +pub mod api_period_v2010_period_account_period_available_phone_number_country; +pub use self::api_period_v2010_period_account_period_available_phone_number_country::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip; +pub mod api_period_v2010_period_account_period_balance; +pub use self::api_period_v2010_period_account_period_balance::ApiPeriodV2010PeriodAccountPeriodBalance; +pub mod api_period_v2010_period_account_period_call; +pub use self::api_period_v2010_period_account_period_call::ApiPeriodV2010PeriodAccountPeriodCall; +pub mod api_period_v2010_period_account_period_call_period_call_event; +pub use self::api_period_v2010_period_account_period_call_period_call_event::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent; +pub mod api_period_v2010_period_account_period_call_period_call_feedback; +pub use self::api_period_v2010_period_account_period_call_period_call_feedback::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback; +pub mod api_period_v2010_period_account_period_call_period_call_feedback_summary; +pub use self::api_period_v2010_period_account_period_call_period_call_feedback_summary::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary; +pub mod api_period_v2010_period_account_period_call_period_call_notification; +pub use self::api_period_v2010_period_account_period_call_period_call_notification::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification; +pub mod api_period_v2010_period_account_period_call_period_call_notification_instance; +pub use self::api_period_v2010_period_account_period_call_period_call_notification_instance::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance; +pub mod api_period_v2010_period_account_period_call_period_call_recording; +pub use self::api_period_v2010_period_account_period_call_period_call_recording::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording; +pub mod api_period_v2010_period_account_period_call_period_payments; +pub use self::api_period_v2010_period_account_period_call_period_payments::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments; +pub mod api_period_v2010_period_account_period_call_period_siprec; +pub use self::api_period_v2010_period_account_period_call_period_siprec::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec; +pub mod api_period_v2010_period_account_period_call_period_stream; +pub use self::api_period_v2010_period_account_period_call_period_stream::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream; +pub mod api_period_v2010_period_account_period_call_period_user_defined_message; +pub use self::api_period_v2010_period_account_period_call_period_user_defined_message::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage; +pub mod api_period_v2010_period_account_period_call_period_user_defined_message_subscription; +pub use self::api_period_v2010_period_account_period_call_period_user_defined_message_subscription::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription; +pub mod api_period_v2010_period_account_period_conference; +pub use self::api_period_v2010_period_account_period_conference::ApiPeriodV2010PeriodAccountPeriodConference; +pub mod api_period_v2010_period_account_period_conference_period_conference_recording; +pub use self::api_period_v2010_period_account_period_conference_period_conference_recording::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording; +pub mod api_period_v2010_period_account_period_conference_period_participant; +pub use self::api_period_v2010_period_account_period_conference_period_participant::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant; +pub mod api_period_v2010_period_account_period_connect_app; +pub use self::api_period_v2010_period_account_period_connect_app::ApiPeriodV2010PeriodAccountPeriodConnectApp; +pub mod api_period_v2010_period_account_period_incoming_phone_number; +pub use self::api_period_v2010_period_account_period_incoming_phone_number::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree; +pub mod api_period_v2010_period_account_period_key; +pub use self::api_period_v2010_period_account_period_key::ApiPeriodV2010PeriodAccountPeriodKey; +pub mod api_period_v2010_period_account_period_message; +pub use self::api_period_v2010_period_account_period_message::ApiPeriodV2010PeriodAccountPeriodMessage; +pub mod api_period_v2010_period_account_period_message_period_media; +pub use self::api_period_v2010_period_account_period_message_period_media::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia; +pub mod api_period_v2010_period_account_period_message_period_message_feedback; +pub use self::api_period_v2010_period_account_period_message_period_message_feedback::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback; +pub mod api_period_v2010_period_account_period_new_key; +pub use self::api_period_v2010_period_account_period_new_key::ApiPeriodV2010PeriodAccountPeriodNewKey; +pub mod api_period_v2010_period_account_period_new_signing_key; +pub use self::api_period_v2010_period_account_period_new_signing_key::ApiPeriodV2010PeriodAccountPeriodNewSigningKey; +pub mod api_period_v2010_period_account_period_notification; +pub use self::api_period_v2010_period_account_period_notification::ApiPeriodV2010PeriodAccountPeriodNotification; +pub mod api_period_v2010_period_account_period_notification_instance; +pub use self::api_period_v2010_period_account_period_notification_instance::ApiPeriodV2010PeriodAccountPeriodNotificationInstance; +pub mod api_period_v2010_period_account_period_outgoing_caller_id; +pub use self::api_period_v2010_period_account_period_outgoing_caller_id::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId; +pub mod api_period_v2010_period_account_period_queue; +pub use self::api_period_v2010_period_account_period_queue::ApiPeriodV2010PeriodAccountPeriodQueue; +pub mod api_period_v2010_period_account_period_queue_period_member; +pub use self::api_period_v2010_period_account_period_queue_period_member::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember; +pub mod api_period_v2010_period_account_period_recording; +pub use self::api_period_v2010_period_account_period_recording::ApiPeriodV2010PeriodAccountPeriodRecording; +pub mod api_period_v2010_period_account_period_recording_period_recording_add_on_result; +pub use self::api_period_v2010_period_account_period_recording_period_recording_add_on_result::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult; +pub mod api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload; +pub use self::api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload; +pub mod api_period_v2010_period_account_period_recording_period_recording_transcription; +pub use self::api_period_v2010_period_account_period_recording_period_recording_transcription::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription; +pub mod api_period_v2010_period_account_period_short_code; +pub use self::api_period_v2010_period_account_period_short_code::ApiPeriodV2010PeriodAccountPeriodShortCode; +pub mod api_period_v2010_period_account_period_signing_key; +pub use self::api_period_v2010_period_account_period_signing_key::ApiPeriodV2010PeriodAccountPeriodSigningKey; +pub mod api_period_v2010_period_account_period_sip_period_sip_credential_list; +pub use self::api_period_v2010_period_account_period_sip_period_sip_credential_list::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList; +pub mod api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential; +pub use self::api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list; +pub use self::api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList; +pub mod api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address; +pub use self::api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress; +pub mod api_period_v2010_period_account_period_token; +pub use self::api_period_v2010_period_account_period_token::ApiPeriodV2010PeriodAccountPeriodToken; +pub mod api_period_v2010_period_account_period_transcription; +pub use self::api_period_v2010_period_account_period_transcription::ApiPeriodV2010PeriodAccountPeriodTranscription; +pub mod api_period_v2010_period_account_period_usage_period_usage_record; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday; +pub mod api_period_v2010_period_account_period_usage_period_usage_trigger; +pub use self::api_period_v2010_period_account_period_usage_period_usage_trigger::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger; +pub mod api_period_v2010_period_account_period_validation_request; +pub use self::api_period_v2010_period_account_period_validation_request::ApiPeriodV2010PeriodAccountPeriodValidationRequest; +pub mod api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities; +pub use self::api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities; +pub mod api_v2010_account_incoming_phone_number_capabilities; +pub use self::api_v2010_account_incoming_phone_number_capabilities::ApiV2010AccountIncomingPhoneNumberCapabilities; +pub mod api_v2010_account_token_ice_servers_inner; +pub use self::api_v2010_account_token_ice_servers_inner::ApiV2010AccountTokenIceServersInner; +pub mod authorized_connect_app_enum_permission; +pub use self::authorized_connect_app_enum_permission::AuthorizedConnectAppEnumPermission; +pub mod call_enum_event; +pub use self::call_enum_event::CallEnumEvent; +pub mod call_enum_status; +pub use self::call_enum_status::CallEnumStatus; +pub mod call_feedback_enum_issues; +pub use self::call_feedback_enum_issues::CallFeedbackEnumIssues; +pub mod call_feedback_summary_enum_status; +pub use self::call_feedback_summary_enum_status::CallFeedbackSummaryEnumStatus; +pub mod call_recording_enum_source; +pub use self::call_recording_enum_source::CallRecordingEnumSource; +pub mod call_recording_enum_status; +pub use self::call_recording_enum_status::CallRecordingEnumStatus; +pub mod conference_enum_reason_conference_ended; +pub use self::conference_enum_reason_conference_ended::ConferenceEnumReasonConferenceEnded; +pub mod conference_enum_status; +pub use self::conference_enum_status::ConferenceEnumStatus; +pub mod conference_recording_enum_source; +pub use self::conference_recording_enum_source::ConferenceRecordingEnumSource; +pub mod conference_recording_enum_status; +pub use self::conference_recording_enum_status::ConferenceRecordingEnumStatus; +pub mod connect_app_enum_permission; +pub use self::connect_app_enum_permission::ConnectAppEnumPermission; +pub mod dependent_phone_number_enum_address_requirement; +pub use self::dependent_phone_number_enum_address_requirement::DependentPhoneNumberEnumAddressRequirement; +pub mod dependent_phone_number_enum_emergency_status; +pub use self::dependent_phone_number_enum_emergency_status::DependentPhoneNumberEnumEmergencyStatus; +pub mod incoming_phone_number_enum_address_requirement; +pub use self::incoming_phone_number_enum_address_requirement::IncomingPhoneNumberEnumAddressRequirement; +pub mod incoming_phone_number_enum_emergency_address_status; +pub use self::incoming_phone_number_enum_emergency_address_status::IncomingPhoneNumberEnumEmergencyAddressStatus; +pub mod incoming_phone_number_enum_emergency_status; +pub use self::incoming_phone_number_enum_emergency_status::IncomingPhoneNumberEnumEmergencyStatus; +pub mod incoming_phone_number_enum_voice_receive_mode; +pub use self::incoming_phone_number_enum_voice_receive_mode::IncomingPhoneNumberEnumVoiceReceiveMode; +pub mod incoming_phone_number_local_enum_address_requirement; +pub use self::incoming_phone_number_local_enum_address_requirement::IncomingPhoneNumberLocalEnumAddressRequirement; +pub mod incoming_phone_number_local_enum_emergency_address_status; +pub use self::incoming_phone_number_local_enum_emergency_address_status::IncomingPhoneNumberLocalEnumEmergencyAddressStatus; +pub mod incoming_phone_number_local_enum_emergency_status; +pub use self::incoming_phone_number_local_enum_emergency_status::IncomingPhoneNumberLocalEnumEmergencyStatus; +pub mod incoming_phone_number_local_enum_voice_receive_mode; +pub use self::incoming_phone_number_local_enum_voice_receive_mode::IncomingPhoneNumberLocalEnumVoiceReceiveMode; +pub mod incoming_phone_number_mobile_enum_address_requirement; +pub use self::incoming_phone_number_mobile_enum_address_requirement::IncomingPhoneNumberMobileEnumAddressRequirement; +pub mod incoming_phone_number_mobile_enum_emergency_address_status; +pub use self::incoming_phone_number_mobile_enum_emergency_address_status::IncomingPhoneNumberMobileEnumEmergencyAddressStatus; +pub mod incoming_phone_number_mobile_enum_emergency_status; +pub use self::incoming_phone_number_mobile_enum_emergency_status::IncomingPhoneNumberMobileEnumEmergencyStatus; +pub mod incoming_phone_number_mobile_enum_voice_receive_mode; +pub use self::incoming_phone_number_mobile_enum_voice_receive_mode::IncomingPhoneNumberMobileEnumVoiceReceiveMode; +pub mod incoming_phone_number_toll_free_enum_address_requirement; +pub use self::incoming_phone_number_toll_free_enum_address_requirement::IncomingPhoneNumberTollFreeEnumAddressRequirement; +pub mod incoming_phone_number_toll_free_enum_emergency_address_status; +pub use self::incoming_phone_number_toll_free_enum_emergency_address_status::IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus; +pub mod incoming_phone_number_toll_free_enum_emergency_status; +pub use self::incoming_phone_number_toll_free_enum_emergency_status::IncomingPhoneNumberTollFreeEnumEmergencyStatus; +pub mod incoming_phone_number_toll_free_enum_voice_receive_mode; +pub use self::incoming_phone_number_toll_free_enum_voice_receive_mode::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode; +pub mod list_account_response; +pub use self::list_account_response::ListAccountResponse; +pub mod list_address_response; +pub use self::list_address_response::ListAddressResponse; +pub mod list_application_response; +pub use self::list_application_response::ListApplicationResponse; +pub mod list_authorized_connect_app_response; +pub use self::list_authorized_connect_app_response::ListAuthorizedConnectAppResponse; +pub mod list_available_phone_number_country_response; +pub use self::list_available_phone_number_country_response::ListAvailablePhoneNumberCountryResponse; +pub mod list_available_phone_number_local_response; +pub use self::list_available_phone_number_local_response::ListAvailablePhoneNumberLocalResponse; +pub mod list_available_phone_number_machine_to_machine_response; +pub use self::list_available_phone_number_machine_to_machine_response::ListAvailablePhoneNumberMachineToMachineResponse; +pub mod list_available_phone_number_mobile_response; +pub use self::list_available_phone_number_mobile_response::ListAvailablePhoneNumberMobileResponse; +pub mod list_available_phone_number_national_response; +pub use self::list_available_phone_number_national_response::ListAvailablePhoneNumberNationalResponse; +pub mod list_available_phone_number_shared_cost_response; +pub use self::list_available_phone_number_shared_cost_response::ListAvailablePhoneNumberSharedCostResponse; +pub mod list_available_phone_number_toll_free_response; +pub use self::list_available_phone_number_toll_free_response::ListAvailablePhoneNumberTollFreeResponse; +pub mod list_available_phone_number_voip_response; +pub use self::list_available_phone_number_voip_response::ListAvailablePhoneNumberVoipResponse; +pub mod list_call_event_response; +pub use self::list_call_event_response::ListCallEventResponse; +pub mod list_call_notification_response; +pub use self::list_call_notification_response::ListCallNotificationResponse; +pub mod list_call_recording_response; +pub use self::list_call_recording_response::ListCallRecordingResponse; +pub mod list_call_response; +pub use self::list_call_response::ListCallResponse; +pub mod list_conference_recording_response; +pub use self::list_conference_recording_response::ListConferenceRecordingResponse; +pub mod list_conference_response; +pub use self::list_conference_response::ListConferenceResponse; +pub mod list_connect_app_response; +pub use self::list_connect_app_response::ListConnectAppResponse; +pub mod list_dependent_phone_number_response; +pub use self::list_dependent_phone_number_response::ListDependentPhoneNumberResponse; +pub mod list_incoming_phone_number_assigned_add_on_extension_response; +pub use self::list_incoming_phone_number_assigned_add_on_extension_response::ListIncomingPhoneNumberAssignedAddOnExtensionResponse; +pub mod list_incoming_phone_number_assigned_add_on_response; +pub use self::list_incoming_phone_number_assigned_add_on_response::ListIncomingPhoneNumberAssignedAddOnResponse; +pub mod list_incoming_phone_number_local_response; +pub use self::list_incoming_phone_number_local_response::ListIncomingPhoneNumberLocalResponse; +pub mod list_incoming_phone_number_mobile_response; +pub use self::list_incoming_phone_number_mobile_response::ListIncomingPhoneNumberMobileResponse; +pub mod list_incoming_phone_number_response; +pub use self::list_incoming_phone_number_response::ListIncomingPhoneNumberResponse; +pub mod list_incoming_phone_number_toll_free_response; +pub use self::list_incoming_phone_number_toll_free_response::ListIncomingPhoneNumberTollFreeResponse; +pub mod list_key_response; +pub use self::list_key_response::ListKeyResponse; +pub mod list_media_response; +pub use self::list_media_response::ListMediaResponse; +pub mod list_member_response; +pub use self::list_member_response::ListMemberResponse; +pub mod list_message_response; +pub use self::list_message_response::ListMessageResponse; +pub mod list_notification_response; +pub use self::list_notification_response::ListNotificationResponse; +pub mod list_outgoing_caller_id_response; +pub use self::list_outgoing_caller_id_response::ListOutgoingCallerIdResponse; +pub mod list_participant_response; +pub use self::list_participant_response::ListParticipantResponse; +pub mod list_queue_response; +pub use self::list_queue_response::ListQueueResponse; +pub mod list_recording_add_on_result_payload_response; +pub use self::list_recording_add_on_result_payload_response::ListRecordingAddOnResultPayloadResponse; +pub mod list_recording_add_on_result_response; +pub use self::list_recording_add_on_result_response::ListRecordingAddOnResultResponse; +pub mod list_recording_response; +pub use self::list_recording_response::ListRecordingResponse; +pub mod list_recording_transcription_response; +pub use self::list_recording_transcription_response::ListRecordingTranscriptionResponse; +pub mod list_short_code_response; +pub use self::list_short_code_response::ListShortCodeResponse; +pub mod list_signing_key_response; +pub use self::list_signing_key_response::ListSigningKeyResponse; +pub mod list_sip_auth_calls_credential_list_mapping_response; +pub use self::list_sip_auth_calls_credential_list_mapping_response::ListSipAuthCallsCredentialListMappingResponse; +pub mod list_sip_auth_calls_ip_access_control_list_mapping_response; +pub use self::list_sip_auth_calls_ip_access_control_list_mapping_response::ListSipAuthCallsIpAccessControlListMappingResponse; +pub mod list_sip_auth_registrations_credential_list_mapping_response; +pub use self::list_sip_auth_registrations_credential_list_mapping_response::ListSipAuthRegistrationsCredentialListMappingResponse; +pub mod list_sip_credential_list_mapping_response; +pub use self::list_sip_credential_list_mapping_response::ListSipCredentialListMappingResponse; +pub mod list_sip_credential_list_response; +pub use self::list_sip_credential_list_response::ListSipCredentialListResponse; +pub mod list_sip_credential_response; +pub use self::list_sip_credential_response::ListSipCredentialResponse; +pub mod list_sip_domain_response; +pub use self::list_sip_domain_response::ListSipDomainResponse; +pub mod list_sip_ip_access_control_list_mapping_response; +pub use self::list_sip_ip_access_control_list_mapping_response::ListSipIpAccessControlListMappingResponse; +pub mod list_sip_ip_access_control_list_response; +pub use self::list_sip_ip_access_control_list_response::ListSipIpAccessControlListResponse; +pub mod list_sip_ip_address_response; +pub use self::list_sip_ip_address_response::ListSipIpAddressResponse; +pub mod list_transcription_response; +pub use self::list_transcription_response::ListTranscriptionResponse; +pub mod list_usage_record_all_time_response; +pub use self::list_usage_record_all_time_response::ListUsageRecordAllTimeResponse; +pub mod list_usage_record_daily_response; +pub use self::list_usage_record_daily_response::ListUsageRecordDailyResponse; +pub mod list_usage_record_last_month_response; +pub use self::list_usage_record_last_month_response::ListUsageRecordLastMonthResponse; +pub mod list_usage_record_monthly_response; +pub use self::list_usage_record_monthly_response::ListUsageRecordMonthlyResponse; +pub mod list_usage_record_response; +pub use self::list_usage_record_response::ListUsageRecordResponse; +pub mod list_usage_record_this_month_response; +pub use self::list_usage_record_this_month_response::ListUsageRecordThisMonthResponse; +pub mod list_usage_record_today_response; +pub use self::list_usage_record_today_response::ListUsageRecordTodayResponse; +pub mod list_usage_record_yearly_response; +pub use self::list_usage_record_yearly_response::ListUsageRecordYearlyResponse; +pub mod list_usage_record_yesterday_response; +pub use self::list_usage_record_yesterday_response::ListUsageRecordYesterdayResponse; +pub mod list_usage_trigger_response; +pub use self::list_usage_trigger_response::ListUsageTriggerResponse; +pub mod message_enum_direction; +pub use self::message_enum_direction::MessageEnumDirection; +pub mod message_enum_status; +pub use self::message_enum_status::MessageEnumStatus; +pub mod message_enum_traffic_type; +pub use self::message_enum_traffic_type::MessageEnumTrafficType; +pub mod message_feedback_enum_outcome; +pub use self::message_feedback_enum_outcome::MessageFeedbackEnumOutcome; +pub mod participant_enum_status; +pub use self::participant_enum_status::ParticipantEnumStatus; +pub mod recording_add_on_result_enum_status; +pub use self::recording_add_on_result_enum_status::RecordingAddOnResultEnumStatus; +pub mod recording_enum_source; +pub use self::recording_enum_source::RecordingEnumSource; +pub mod recording_enum_status; +pub use self::recording_enum_status::RecordingEnumStatus; +pub mod recording_transcription_enum_status; +pub use self::recording_transcription_enum_status::RecordingTranscriptionEnumStatus; +pub mod siprec_enum_status; +pub use self::siprec_enum_status::SiprecEnumStatus; +pub mod stream_enum_status; +pub use self::stream_enum_status::StreamEnumStatus; +pub mod transcription_enum_status; +pub use self::transcription_enum_status::TranscriptionEnumStatus; +pub mod usage_record_all_time_enum_category; +pub use self::usage_record_all_time_enum_category::UsageRecordAllTimeEnumCategory; +pub mod usage_record_daily_enum_category; +pub use self::usage_record_daily_enum_category::UsageRecordDailyEnumCategory; +pub mod usage_record_enum_category; +pub use self::usage_record_enum_category::UsageRecordEnumCategory; +pub mod usage_record_last_month_enum_category; +pub use self::usage_record_last_month_enum_category::UsageRecordLastMonthEnumCategory; +pub mod usage_record_monthly_enum_category; +pub use self::usage_record_monthly_enum_category::UsageRecordMonthlyEnumCategory; +pub mod usage_record_this_month_enum_category; +pub use self::usage_record_this_month_enum_category::UsageRecordThisMonthEnumCategory; +pub mod usage_record_today_enum_category; +pub use self::usage_record_today_enum_category::UsageRecordTodayEnumCategory; +pub mod usage_record_yearly_enum_category; +pub use self::usage_record_yearly_enum_category::UsageRecordYearlyEnumCategory; +pub mod usage_record_yesterday_enum_category; +pub use self::usage_record_yesterday_enum_category::UsageRecordYesterdayEnumCategory; +pub mod usage_trigger_enum_recurring; +pub use self::usage_trigger_enum_recurring::UsageTriggerEnumRecurring; +pub mod usage_trigger_enum_trigger_field; +pub use self::usage_trigger_enum_trigger_field::UsageTriggerEnumTriggerField; +pub mod usage_trigger_enum_usage_category; +pub use self::usage_trigger_enum_usage_category::UsageTriggerEnumUsageCategory; diff --git a/twil-api/src/models/participant_enum_status.rs b/twil-api/src/models/participant_enum_status.rs new file mode 100644 index 0000000..a9af121 --- /dev/null +++ b/twil-api/src/models/participant_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ParticipantEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "connecting")] + Connecting, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "connected")] + Connected, + #[serde(rename = "complete")] + Complete, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for ParticipantEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Connecting => String::from("connecting"), + Self::Ringing => String::from("ringing"), + Self::Connected => String::from("connected"), + Self::Complete => String::from("complete"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for ParticipantEnumStatus { + fn default() -> ParticipantEnumStatus { + Self::Queued + } +} + + + + diff --git a/twil-api/src/models/recording_add_on_result_enum_status.rs b/twil-api/src/models/recording_add_on_result_enum_status.rs new file mode 100644 index 0000000..901812a --- /dev/null +++ b/twil-api/src/models/recording_add_on_result_enum_status.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingAddOnResultEnumStatus { + #[serde(rename = "canceled")] + Canceled, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "deleted")] + Deleted, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "init")] + Init, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "queued")] + Queued, + +} + +impl ToString for RecordingAddOnResultEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Canceled => String::from("canceled"), + Self::Completed => String::from("completed"), + Self::Deleted => String::from("deleted"), + Self::Failed => String::from("failed"), + Self::InProgress => String::from("in-progress"), + Self::Init => String::from("init"), + Self::Processing => String::from("processing"), + Self::Queued => String::from("queued"), + } + } +} + +impl Default for RecordingAddOnResultEnumStatus { + fn default() -> RecordingAddOnResultEnumStatus { + Self::Canceled + } +} + + + + diff --git a/twil-api/src/models/recording_enum_source.rs b/twil-api/src/models/recording_enum_source.rs new file mode 100644 index 0000000..e1f8065 --- /dev/null +++ b/twil-api/src/models/recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for RecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for RecordingEnumSource { + fn default() -> RecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/twil-api/src/models/recording_enum_status.rs b/twil-api/src/models/recording_enum_status.rs new file mode 100644 index 0000000..fd1c430 --- /dev/null +++ b/twil-api/src/models/recording_enum_status.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + #[serde(rename = "deleted")] + Deleted, + +} + +impl ToString for RecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + Self::Deleted => String::from("deleted"), + } + } +} + +impl Default for RecordingEnumStatus { + fn default() -> RecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/recording_transcription_enum_status.rs b/twil-api/src/models/recording_transcription_enum_status.rs new file mode 100644 index 0000000..ee9f0cd --- /dev/null +++ b/twil-api/src/models/recording_transcription_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingTranscriptionEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for RecordingTranscriptionEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for RecordingTranscriptionEnumStatus { + fn default() -> RecordingTranscriptionEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/siprec_enum_status.rs b/twil-api/src/models/siprec_enum_status.rs new file mode 100644 index 0000000..64f5dbc --- /dev/null +++ b/twil-api/src/models/siprec_enum_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SiprecEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for SiprecEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for SiprecEnumStatus { + fn default() -> SiprecEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/stream_enum_status.rs b/twil-api/src/models/stream_enum_status.rs new file mode 100644 index 0000000..b161d60 --- /dev/null +++ b/twil-api/src/models/stream_enum_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StreamEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for StreamEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for StreamEnumStatus { + fn default() -> StreamEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/transcription_enum_status.rs b/twil-api/src/models/transcription_enum_status.rs new file mode 100644 index 0000000..ec049b2 --- /dev/null +++ b/twil-api/src/models/transcription_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TranscriptionEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for TranscriptionEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for TranscriptionEnumStatus { + fn default() -> TranscriptionEnumStatus { + Self::InProgress + } +} + + + + diff --git a/twil-api/src/models/usage_record_all_time_enum_category.rs b/twil-api/src/models/usage_record_all_time_enum_category.rs new file mode 100644 index 0000000..c3dff38 --- /dev/null +++ b/twil-api/src/models/usage_record_all_time_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordAllTimeEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordAllTimeEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordAllTimeEnumCategory { + fn default() -> UsageRecordAllTimeEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_daily_enum_category.rs b/twil-api/src/models/usage_record_daily_enum_category.rs new file mode 100644 index 0000000..d49f29e --- /dev/null +++ b/twil-api/src/models/usage_record_daily_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordDailyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordDailyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordDailyEnumCategory { + fn default() -> UsageRecordDailyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_enum_category.rs b/twil-api/src/models/usage_record_enum_category.rs new file mode 100644 index 0000000..989825c --- /dev/null +++ b/twil-api/src/models/usage_record_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordEnumCategory { + fn default() -> UsageRecordEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_last_month_enum_category.rs b/twil-api/src/models/usage_record_last_month_enum_category.rs new file mode 100644 index 0000000..fab4d44 --- /dev/null +++ b/twil-api/src/models/usage_record_last_month_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordLastMonthEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordLastMonthEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordLastMonthEnumCategory { + fn default() -> UsageRecordLastMonthEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_monthly_enum_category.rs b/twil-api/src/models/usage_record_monthly_enum_category.rs new file mode 100644 index 0000000..4a9e7f6 --- /dev/null +++ b/twil-api/src/models/usage_record_monthly_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordMonthlyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordMonthlyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordMonthlyEnumCategory { + fn default() -> UsageRecordMonthlyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_this_month_enum_category.rs b/twil-api/src/models/usage_record_this_month_enum_category.rs new file mode 100644 index 0000000..74c9a8f --- /dev/null +++ b/twil-api/src/models/usage_record_this_month_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordThisMonthEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordThisMonthEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordThisMonthEnumCategory { + fn default() -> UsageRecordThisMonthEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_today_enum_category.rs b/twil-api/src/models/usage_record_today_enum_category.rs new file mode 100644 index 0000000..f7460a1 --- /dev/null +++ b/twil-api/src/models/usage_record_today_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordTodayEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordTodayEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordTodayEnumCategory { + fn default() -> UsageRecordTodayEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_yearly_enum_category.rs b/twil-api/src/models/usage_record_yearly_enum_category.rs new file mode 100644 index 0000000..744ead2 --- /dev/null +++ b/twil-api/src/models/usage_record_yearly_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordYearlyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordYearlyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordYearlyEnumCategory { + fn default() -> UsageRecordYearlyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_record_yesterday_enum_category.rs b/twil-api/src/models/usage_record_yesterday_enum_category.rs new file mode 100644 index 0000000..bf24ab6 --- /dev/null +++ b/twil-api/src/models/usage_record_yesterday_enum_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordYesterdayEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordYesterdayEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordYesterdayEnumCategory { + fn default() -> UsageRecordYesterdayEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-api/src/models/usage_trigger_enum_recurring.rs b/twil-api/src/models/usage_trigger_enum_recurring.rs new file mode 100644 index 0000000..f021719 --- /dev/null +++ b/twil-api/src/models/usage_trigger_enum_recurring.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumRecurring { + #[serde(rename = "daily")] + Daily, + #[serde(rename = "monthly")] + Monthly, + #[serde(rename = "yearly")] + Yearly, + #[serde(rename = "alltime")] + Alltime, + +} + +impl ToString for UsageTriggerEnumRecurring { + fn to_string(&self) -> String { + match self { + Self::Daily => String::from("daily"), + Self::Monthly => String::from("monthly"), + Self::Yearly => String::from("yearly"), + Self::Alltime => String::from("alltime"), + } + } +} + +impl Default for UsageTriggerEnumRecurring { + fn default() -> UsageTriggerEnumRecurring { + Self::Daily + } +} + + + + diff --git a/twil-api/src/models/usage_trigger_enum_trigger_field.rs b/twil-api/src/models/usage_trigger_enum_trigger_field.rs new file mode 100644 index 0000000..3d65e9e --- /dev/null +++ b/twil-api/src/models/usage_trigger_enum_trigger_field.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumTriggerField { + #[serde(rename = "count")] + Count, + #[serde(rename = "usage")] + Usage, + #[serde(rename = "price")] + Price, + +} + +impl ToString for UsageTriggerEnumTriggerField { + fn to_string(&self) -> String { + match self { + Self::Count => String::from("count"), + Self::Usage => String::from("usage"), + Self::Price => String::from("price"), + } + } +} + +impl Default for UsageTriggerEnumTriggerField { + fn default() -> UsageTriggerEnumTriggerField { + Self::Count + } +} + + + + diff --git a/twil-api/src/models/usage_trigger_enum_usage_category.rs b/twil-api/src/models/usage_trigger_enum_usage_category.rs new file mode 100644 index 0000000..f69c65f --- /dev/null +++ b/twil-api/src/models/usage_trigger_enum_usage_category.rs @@ -0,0 +1,768 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumUsageCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageTriggerEnumUsageCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageTriggerEnumUsageCategory { + fn default() -> UsageTriggerEnumUsageCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/twil-content/.gitignore b/twil-content/.gitignore new file mode 100644 index 0000000..6aa1064 --- /dev/null +++ b/twil-content/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/twil-content/.openapi-generator-ignore b/twil-content/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/twil-content/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/twil-content/.openapi-generator/FILES b/twil-content/.openapi-generator/FILES new file mode 100644 index 0000000..c84b37f --- /dev/null +++ b/twil-content/.openapi-generator/FILES @@ -0,0 +1,28 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +Cargo.toml +README.md +docs/ContentPeriodV1PeriodContent.md +docs/ContentPeriodV1PeriodContentAndApprovals.md +docs/ContentPeriodV1PeriodContentPeriodApprovalFetch.md +docs/ContentPeriodV1PeriodLegacyContent.md +docs/DefaultApi.md +docs/ListContentAndApprovalsResponse.md +docs/ListContentResponse.md +docs/ListContentResponseMeta.md +docs/ListLegacyContentResponse.md +git_push.sh +src/apis/configuration.rs +src/apis/default_api.rs +src/apis/mod.rs +src/lib.rs +src/models/content_period_v1_period_content.rs +src/models/content_period_v1_period_content_and_approvals.rs +src/models/content_period_v1_period_content_period_approval_fetch.rs +src/models/content_period_v1_period_legacy_content.rs +src/models/list_content_and_approvals_response.rs +src/models/list_content_response.rs +src/models/list_content_response_meta.rs +src/models/list_legacy_content_response.rs +src/models/mod.rs diff --git a/twil-content/.openapi-generator/VERSION b/twil-content/.openapi-generator/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/twil-content/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/twil-content/.travis.yml b/twil-content/.travis.yml new file mode 100644 index 0000000..22761ba --- /dev/null +++ b/twil-content/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/twil-content/Cargo.toml b/twil-content/Cargo.toml new file mode 100644 index 0000000..7757ab9 --- /dev/null +++ b/twil-content/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "twil-content" +version = "1.46.0" +authors = ["support@twilio.com"] +description = "This is the public Twilio REST API." +license = "Apache 2.0" +edition = "2018" + +[dependencies] +serde = "^1.0" +serde_derive = "^1.0" +serde_with = "^2.0" +serde_json = "^1.0" +url = "^2.2" +uuid = { version = "^1.0", features = ["serde"] } +[dependencies.reqwest] +version = "^0.11" +features = ["json", "multipart"] diff --git a/twil-content/README.md b/twil-content/README.md new file mode 100644 index 0000000..e1b5206 --- /dev/null +++ b/twil-content/README.md @@ -0,0 +1,58 @@ +# Rust API client for openapi + +This is the public Twilio REST API. + +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. + +- API version: 1.46.0 +- Package version: 1.46.0 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` + +## Installation + +Put the package under your project folder in a directory named `openapi` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +openapi = { path = "./openapi" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://content.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**delete_content**](docs/DefaultApi.md#delete_content) | **DELETE** /v1/Content/{Sid} | +*DefaultApi* | [**fetch_approval_fetch**](docs/DefaultApi.md#fetch_approval_fetch) | **GET** /v1/Content/{Sid}/ApprovalRequests | +*DefaultApi* | [**fetch_content**](docs/DefaultApi.md#fetch_content) | **GET** /v1/Content/{Sid} | +*DefaultApi* | [**list_content**](docs/DefaultApi.md#list_content) | **GET** /v1/Content | +*DefaultApi* | [**list_content_and_approvals**](docs/DefaultApi.md#list_content_and_approvals) | **GET** /v1/ContentAndApprovals | +*DefaultApi* | [**list_legacy_content**](docs/DefaultApi.md#list_legacy_content) | **GET** /v1/LegacyContent | + + +## Documentation For Models + + - [ContentPeriodV1PeriodContent](docs/ContentPeriodV1PeriodContent.md) + - [ContentPeriodV1PeriodContentAndApprovals](docs/ContentPeriodV1PeriodContentAndApprovals.md) + - [ContentPeriodV1PeriodContentPeriodApprovalFetch](docs/ContentPeriodV1PeriodContentPeriodApprovalFetch.md) + - [ContentPeriodV1PeriodLegacyContent](docs/ContentPeriodV1PeriodLegacyContent.md) + - [ListContentAndApprovalsResponse](docs/ListContentAndApprovalsResponse.md) + - [ListContentResponse](docs/ListContentResponse.md) + - [ListContentResponseMeta](docs/ListContentResponseMeta.md) + - [ListLegacyContentResponse](docs/ListLegacyContentResponse.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + +support@twilio.com + diff --git a/twil-content/docs/ContentPeriodV1PeriodContent.md b/twil-content/docs/ContentPeriodV1PeriodContent.md new file mode 100644 index 0000000..bf58b25 --- /dev/null +++ b/twil-content/docs/ContentPeriodV1PeriodContent.md @@ -0,0 +1,20 @@ +# ContentPeriodV1PeriodContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Content resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. | [optional] +**friendly_name** | Option<**String**> | A string name used to describe the Content resource. Not visible to the end recipient. | [optional] +**language** | Option<**String**> | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | [optional] +**variables** | Option<[**serde_json::Value**](.md)> | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | [optional] +**types** | Option<[**serde_json::Value**](.md)> | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | [optional] +**url** | Option<**String**> | The URL of the resource, relative to `https://content.twilio.com`. | [optional] +**links** | Option<[**serde_json::Value**](.md)> | A list of links related to the Content resource, such as approval_fetch and approval_create | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ContentPeriodV1PeriodContentAndApprovals.md b/twil-content/docs/ContentPeriodV1PeriodContentAndApprovals.md new file mode 100644 index 0000000..5d83d2e --- /dev/null +++ b/twil-content/docs/ContentPeriodV1PeriodContentAndApprovals.md @@ -0,0 +1,19 @@ +# ContentPeriodV1PeriodContentAndApprovals + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Content resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. | [optional] +**friendly_name** | Option<**String**> | A string name used to describe the Content resource. Not visible to the end recipient. | [optional] +**language** | Option<**String**> | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | [optional] +**variables** | Option<[**serde_json::Value**](.md)> | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | [optional] +**types** | Option<[**serde_json::Value**](.md)> | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | [optional] +**approval_requests** | Option<[**serde_json::Value**](.md)> | The submitted information and approval request status of the Content resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ContentPeriodV1PeriodContentPeriodApprovalFetch.md b/twil-content/docs/ContentPeriodV1PeriodContentPeriodApprovalFetch.md new file mode 100644 index 0000000..e524f9c --- /dev/null +++ b/twil-content/docs/ContentPeriodV1PeriodContentPeriodApprovalFetch.md @@ -0,0 +1,14 @@ +# ContentPeriodV1PeriodContentPeriodApprovalFetch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Content resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. | [optional] +**whatsapp** | Option<[**serde_json::Value**](.md)> | Contains the whatsapp approval information for the Content resource, with fields such as approval status, rejection reason, and category, amongst others. | [optional] +**url** | Option<**String**> | The URL of the resource, relative to `https://content.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ContentPeriodV1PeriodLegacyContent.md b/twil-content/docs/ContentPeriodV1PeriodLegacyContent.md new file mode 100644 index 0000000..9035e50 --- /dev/null +++ b/twil-content/docs/ContentPeriodV1PeriodLegacyContent.md @@ -0,0 +1,21 @@ +# ContentPeriodV1PeriodLegacyContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Content resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. | [optional] +**friendly_name** | Option<**String**> | A string name used to describe the Content resource. Not visible to the end recipient. | [optional] +**language** | Option<**String**> | Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. | [optional] +**variables** | Option<[**serde_json::Value**](.md)> | Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. | [optional] +**types** | Option<[**serde_json::Value**](.md)> | The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. | [optional] +**legacy_template_name** | Option<**String**> | The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed | [optional] +**legacy_body** | Option<**String**> | The string body field of the legacy content template associated with this Content resource | [optional] +**url** | Option<**String**> | The URL of the resource, relative to `https://content.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/DefaultApi.md b/twil-content/docs/DefaultApi.md new file mode 100644 index 0000000..7b987bc --- /dev/null +++ b/twil-content/docs/DefaultApi.md @@ -0,0 +1,200 @@ +# \DefaultApi + +All URIs are relative to *https://content.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_content**](DefaultApi.md#delete_content) | **DELETE** /v1/Content/{Sid} | +[**fetch_approval_fetch**](DefaultApi.md#fetch_approval_fetch) | **GET** /v1/Content/{Sid}/ApprovalRequests | +[**fetch_content**](DefaultApi.md#fetch_content) | **GET** /v1/Content/{Sid} | +[**list_content**](DefaultApi.md#list_content) | **GET** /v1/Content | +[**list_content_and_approvals**](DefaultApi.md#list_content_and_approvals) | **GET** /v1/ContentAndApprovals | +[**list_legacy_content**](DefaultApi.md#list_legacy_content) | **GET** /v1/LegacyContent | + + + +## delete_content + +> delete_content(sid) + + +Deletes a Content resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Twilio-provided string that uniquely identifies the Content resource to fetch. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_approval_fetch + +> crate::models::ContentPeriodV1PeriodContentPeriodApprovalFetch fetch_approval_fetch(sid) + + +Fetch a Content resource's approval status by its unique Content Sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch. | [required] | + +### Return type + +[**crate::models::ContentPeriodV1PeriodContentPeriodApprovalFetch**](content.v1.content.approval_fetch.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_content + +> crate::models::ContentPeriodV1PeriodContent fetch_content(sid) + + +Fetch a Content resource by its unique Content Sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Twilio-provided string that uniquely identifies the Content resource to fetch. | [required] | + +### Return type + +[**crate::models::ContentPeriodV1PeriodContent**](content.v1.content.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_content + +> crate::models::ListContentResponse list_content(page_size, page, page_token) + + +Retrieve a list of Contents belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListContentResponse**](ListContentResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_content_and_approvals + +> crate::models::ListContentAndApprovalsResponse list_content_and_approvals(page_size, page, page_token) + + +Retrieve a list of Contents with approval statuses belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListContentAndApprovalsResponse**](ListContentAndApprovalsResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_legacy_content + +> crate::models::ListLegacyContentResponse list_legacy_content(page_size, page, page_token) + + +Retrieve a list of Legacy Contents belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListLegacyContentResponse**](ListLegacyContentResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/twil-content/docs/ListContentAndApprovalsResponse.md b/twil-content/docs/ListContentAndApprovalsResponse.md new file mode 100644 index 0000000..4eb9995 --- /dev/null +++ b/twil-content/docs/ListContentAndApprovalsResponse.md @@ -0,0 +1,12 @@ +# ListContentAndApprovalsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](content.v1.content_and_approvals.md)> | | [optional] +**meta** | Option<[**crate::models::ListContentResponseMeta**](ListContentResponse_meta.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ListContentResponse.md b/twil-content/docs/ListContentResponse.md new file mode 100644 index 0000000..93a65f9 --- /dev/null +++ b/twil-content/docs/ListContentResponse.md @@ -0,0 +1,12 @@ +# ListContentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](content.v1.content.md)> | | [optional] +**meta** | Option<[**crate::models::ListContentResponseMeta**](ListContentResponse_meta.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ListContentResponseMeta.md b/twil-content/docs/ListContentResponseMeta.md new file mode 100644 index 0000000..ff6bcf7 --- /dev/null +++ b/twil-content/docs/ListContentResponseMeta.md @@ -0,0 +1,17 @@ +# ListContentResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_page_url** | Option<**String**> | | [optional] +**next_page_url** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_url** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] +**key** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/docs/ListLegacyContentResponse.md b/twil-content/docs/ListLegacyContentResponse.md new file mode 100644 index 0000000..655705f --- /dev/null +++ b/twil-content/docs/ListLegacyContentResponse.md @@ -0,0 +1,12 @@ +# ListLegacyContentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](content.v1.legacy_content.md)> | | [optional] +**meta** | Option<[**crate::models::ListContentResponseMeta**](ListContentResponse_meta.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/twil-content/git_push.sh b/twil-content/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/twil-content/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/twil-content/src/apis/configuration.rs b/twil-content/src/apis/configuration.rs new file mode 100644 index 0000000..d681f6f --- /dev/null +++ b/twil-content/src/apis/configuration.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, + // TODO: take an oauth2 token source, similar to the go one +} + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + Configuration { + base_path: "https://content.twilio.com".to_owned(), + user_agent: Some("OpenAPI-Generator/1.46.0/rust".to_owned()), + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + + } + } +} diff --git a/twil-content/src/apis/default_api.rs b/twil-content/src/apis/default_api.rs new file mode 100644 index 0000000..73c8e2a --- /dev/null +++ b/twil-content/src/apis/default_api.rs @@ -0,0 +1,273 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + + +/// struct for typed errors of method [`delete_content`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteContentError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_approval_fetch`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchApprovalFetchError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_content`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchContentError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_content`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListContentError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_content_and_approvals`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListContentAndApprovalsError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_legacy_content`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListLegacyContentError { + UnknownValue(serde_json::Value), +} + + +/// Deletes a Content resource +pub async fn delete_content(configuration: &configuration::Configuration, sid: &str) -> Result<(), Error> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/Content/{Sid}", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a Content resource's approval status by its unique Content Sid +pub async fn fetch_approval_fetch(configuration: &configuration::Configuration, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/Content/{Sid}/ApprovalRequests", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a Content resource by its unique Content Sid +pub async fn fetch_content(configuration: &configuration::Configuration, sid: &str) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/Content/{Sid}", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Contents belonging to the account used to make the request +pub async fn list_content(configuration: &configuration::Configuration, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/Content", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Contents with approval statuses belonging to the account used to make the request +pub async fn list_content_and_approvals(configuration: &configuration::Configuration, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/ContentAndApprovals", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Legacy Contents belonging to the account used to make the request +pub async fn list_legacy_content(configuration: &configuration::Configuration, page_size: Option, page: Option, page_token: Option<&str>) -> Result> { + let local_var_configuration = configuration; + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/v1/LegacyContent", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/twil-content/src/apis/mod.rs b/twil-content/src/apis/mod.rs new file mode 100644 index 0000000..4b09ba5 --- /dev/null +++ b/twil-content/src/apis/mod.rs @@ -0,0 +1,95 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +pub mod default_api; + +pub mod configuration; diff --git a/twil-content/src/lib.rs b/twil-content/src/lib.rs new file mode 100644 index 0000000..c1dd666 --- /dev/null +++ b/twil-content/src/lib.rs @@ -0,0 +1,10 @@ +#[macro_use] +extern crate serde_derive; + +extern crate serde; +extern crate serde_json; +extern crate url; +extern crate reqwest; + +pub mod apis; +pub mod models; diff --git a/twil-content/src/models/content_period_v1_period_content.rs b/twil-content/src/models/content_period_v1_period_content.rs new file mode 100644 index 0000000..ce5ca63 --- /dev/null +++ b/twil-content/src/models/content_period_v1_period_content.rs @@ -0,0 +1,65 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ContentPeriodV1PeriodContent { + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that that we created to identify the Content resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A string name used to describe the Content resource. Not visible to the end recipient. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. + #[serde(rename = "language", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub language: Option>, + /// Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. + #[serde(rename = "variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub variables: Option>, + /// The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. + #[serde(rename = "types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub types: Option>, + /// The URL of the resource, relative to `https://content.twilio.com`. + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, + /// A list of links related to the Content resource, such as approval_fetch and approval_create + #[serde(rename = "links", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub links: Option>, +} + +impl ContentPeriodV1PeriodContent { + pub fn new() -> ContentPeriodV1PeriodContent { + ContentPeriodV1PeriodContent { + date_created: None, + date_updated: None, + sid: None, + account_sid: None, + friendly_name: None, + language: None, + variables: None, + types: None, + url: None, + links: None, + } + } +} + + diff --git a/twil-content/src/models/content_period_v1_period_content_and_approvals.rs b/twil-content/src/models/content_period_v1_period_content_and_approvals.rs new file mode 100644 index 0000000..ee02ece --- /dev/null +++ b/twil-content/src/models/content_period_v1_period_content_and_approvals.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ContentPeriodV1PeriodContentAndApprovals { + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that that we created to identify the Content resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A string name used to describe the Content resource. Not visible to the end recipient. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. + #[serde(rename = "language", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub language: Option>, + /// Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. + #[serde(rename = "variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub variables: Option>, + /// The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. + #[serde(rename = "types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub types: Option>, + /// The submitted information and approval request status of the Content resource. + #[serde(rename = "approval_requests", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub approval_requests: Option>, +} + +impl ContentPeriodV1PeriodContentAndApprovals { + pub fn new() -> ContentPeriodV1PeriodContentAndApprovals { + ContentPeriodV1PeriodContentAndApprovals { + date_created: None, + date_updated: None, + sid: None, + account_sid: None, + friendly_name: None, + language: None, + variables: None, + types: None, + approval_requests: None, + } + } +} + + diff --git a/twil-content/src/models/content_period_v1_period_content_period_approval_fetch.rs b/twil-content/src/models/content_period_v1_period_content_period_approval_fetch.rs new file mode 100644 index 0000000..2fa5078 --- /dev/null +++ b/twil-content/src/models/content_period_v1_period_content_period_approval_fetch.rs @@ -0,0 +1,41 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ContentPeriodV1PeriodContentPeriodApprovalFetch { + /// The unique string that that we created to identify the Content resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// Contains the whatsapp approval information for the Content resource, with fields such as approval status, rejection reason, and category, amongst others. + #[serde(rename = "whatsapp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub whatsapp: Option>, + /// The URL of the resource, relative to `https://content.twilio.com`. + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, +} + +impl ContentPeriodV1PeriodContentPeriodApprovalFetch { + pub fn new() -> ContentPeriodV1PeriodContentPeriodApprovalFetch { + ContentPeriodV1PeriodContentPeriodApprovalFetch { + sid: None, + account_sid: None, + whatsapp: None, + url: None, + } + } +} + + diff --git a/twil-content/src/models/content_period_v1_period_legacy_content.rs b/twil-content/src/models/content_period_v1_period_legacy_content.rs new file mode 100644 index 0000000..d154f3c --- /dev/null +++ b/twil-content/src/models/content_period_v1_period_legacy_content.rs @@ -0,0 +1,69 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ContentPeriodV1PeriodLegacyContent { + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that that we created to identify the Content resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A string name used to describe the Content resource. Not visible to the end recipient. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in. + #[serde(rename = "language", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub language: Option>, + /// Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}. + #[serde(rename = "variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub variables: Option>, + /// The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource. + #[serde(rename = "types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub types: Option>, + /// The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed + #[serde(rename = "legacy_template_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub legacy_template_name: Option>, + /// The string body field of the legacy content template associated with this Content resource + #[serde(rename = "legacy_body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub legacy_body: Option>, + /// The URL of the resource, relative to `https://content.twilio.com`. + #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url: Option>, +} + +impl ContentPeriodV1PeriodLegacyContent { + pub fn new() -> ContentPeriodV1PeriodLegacyContent { + ContentPeriodV1PeriodLegacyContent { + date_created: None, + date_updated: None, + sid: None, + account_sid: None, + friendly_name: None, + language: None, + variables: None, + types: None, + legacy_template_name: None, + legacy_body: None, + url: None, + } + } +} + + diff --git a/twil-content/src/models/list_content_and_approvals_response.rs b/twil-content/src/models/list_content_and_approvals_response.rs new file mode 100644 index 0000000..7ac6181 --- /dev/null +++ b/twil-content/src/models/list_content_and_approvals_response.rs @@ -0,0 +1,31 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListContentAndApprovalsResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "meta", skip_serializing_if = "Option::is_none")] + pub meta: Option>, +} + +impl ListContentAndApprovalsResponse { + pub fn new() -> ListContentAndApprovalsResponse { + ListContentAndApprovalsResponse { + contents: None, + meta: None, + } + } +} + + diff --git a/twil-content/src/models/list_content_response.rs b/twil-content/src/models/list_content_response.rs new file mode 100644 index 0000000..472d629 --- /dev/null +++ b/twil-content/src/models/list_content_response.rs @@ -0,0 +1,31 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListContentResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "meta", skip_serializing_if = "Option::is_none")] + pub meta: Option>, +} + +impl ListContentResponse { + pub fn new() -> ListContentResponse { + ListContentResponse { + contents: None, + meta: None, + } + } +} + + diff --git a/twil-content/src/models/list_content_response_meta.rs b/twil-content/src/models/list_content_response_meta.rs new file mode 100644 index 0000000..5006fbb --- /dev/null +++ b/twil-content/src/models/list_content_response_meta.rs @@ -0,0 +1,46 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListContentResponseMeta { + #[serde(rename = "first_page_url", skip_serializing_if = "Option::is_none")] + pub first_page_url: Option, + #[serde(rename = "next_page_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_url: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_url: Option>, + #[serde(rename = "url", skip_serializing_if = "Option::is_none")] + pub url: Option, + #[serde(rename = "key", skip_serializing_if = "Option::is_none")] + pub key: Option, +} + +impl ListContentResponseMeta { + pub fn new() -> ListContentResponseMeta { + ListContentResponseMeta { + first_page_url: None, + next_page_url: None, + page: None, + page_size: None, + previous_page_url: None, + url: None, + key: None, + } + } +} + + diff --git a/twil-content/src/models/list_legacy_content_response.rs b/twil-content/src/models/list_legacy_content_response.rs new file mode 100644 index 0000000..bdc7d99 --- /dev/null +++ b/twil-content/src/models/list_legacy_content_response.rs @@ -0,0 +1,31 @@ +/* + * Twilio - Content + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.46.0 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct ListLegacyContentResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "meta", skip_serializing_if = "Option::is_none")] + pub meta: Option>, +} + +impl ListLegacyContentResponse { + pub fn new() -> ListLegacyContentResponse { + ListLegacyContentResponse { + contents: None, + meta: None, + } + } +} + + diff --git a/twil-content/src/models/mod.rs b/twil-content/src/models/mod.rs new file mode 100644 index 0000000..30a3d06 --- /dev/null +++ b/twil-content/src/models/mod.rs @@ -0,0 +1,16 @@ +pub mod content_period_v1_period_content; +pub use self::content_period_v1_period_content::ContentPeriodV1PeriodContent; +pub mod content_period_v1_period_content_and_approvals; +pub use self::content_period_v1_period_content_and_approvals::ContentPeriodV1PeriodContentAndApprovals; +pub mod content_period_v1_period_content_period_approval_fetch; +pub use self::content_period_v1_period_content_period_approval_fetch::ContentPeriodV1PeriodContentPeriodApprovalFetch; +pub mod content_period_v1_period_legacy_content; +pub use self::content_period_v1_period_legacy_content::ContentPeriodV1PeriodLegacyContent; +pub mod list_content_and_approvals_response; +pub use self::list_content_and_approvals_response::ListContentAndApprovalsResponse; +pub mod list_content_response; +pub use self::list_content_response::ListContentResponse; +pub mod list_content_response_meta; +pub use self::list_content_response_meta::ListContentResponseMeta; +pub mod list_legacy_content_response; +pub use self::list_legacy_content_response::ListLegacyContentResponse;